Package horcher.visual

Source Code of horcher.visual.Micro

/**11.09.2008
* Jan Gunnar Gleixner
* Horcher
*
*
*/
package horcher.visual;

import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Vector3d;

import com.sun.j3d.utils.geometry.Sphere;

public class Micro extends TransformGroup {

  public Micro(final Vector3d pos) {
    super();
    final Transform3D t = new Transform3D();
    t.setTranslation(pos);
    this.setTransform(t);
    final Sphere sphere = new Sphere(0.1f, new Sphere().getPrimitiveFlags(),
        210);
    sphere.getAppearance().getMaterial().setDiffuseColor(0, 0.1f, 0.5f);
    sphere.getAppearance().getMaterial().setAmbientColor(0f, 0.1f, 0.5f);
    sphere.getAppearance().getMaterial().setSpecularColor(0.3f, 0.8f, 0.4f);
    // sphere.getAppearance().getLineAttributes().setPatternMask(arg0);
    this.addChild(new AntiAliased<Sphere>(sphere));
  }
}
TOP

Related Classes of horcher.visual.Micro

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.