Examples of TransformGroup


Examples of com.xith3d.scenegraph.TransformGroup

    BranchGroup objRoot = new BranchGroup();

    Appearance a = new Appearance();
    a.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_LINE, PolygonAttributes.CULL_NONE, 0));
    Shape3D sph = new Shape3D(TestUtils.createSphere(1.0f, 20), a);
    TransformGroup sphereTrans = new TransformGroup();
    sphereTrans.addChild(sph);

    objRoot.addChild(sphereTrans);

    AmbientLight aLgt = new AmbientLight(new Color3f(0.2f, 0.2f, 0.2f));
    objRoot.addChild(aLgt);
View Full Code Here

Examples of com.xith3d.scenegraph.TransformGroup

    protected TransformGroup transformGroup;
   
    public TransformGroupNodeXith3D(ActiveNode parent) {
        super(parent);
        transformGroup = new TransformGroup();
        transformGroup.setName(name);
        transformGroup.setUserData(this);
        transformGroup.setPickable(true);
        if (parent.get3DObject() instanceof Group) {
            ((Group)parent.get3DObject()).addChild(transformGroup);
View Full Code Here

Examples of com.xith3d.scenegraph.TransformGroup

   
    Appearance a = new Appearance();
    a.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_LINE, PolygonAttributes.CULL_NONE, 0));
    Shape3D sph = new Shape3D(TestUtils.createSphere(1.0f, 20), a);
    sph.setName("s1");
    TransformGroup sphereTrans = new TransformGroup();
    sphereTrans.addChild(sph);
    sphereTrans.setName("t1");

    bg.addChild(sphereTrans);

    AmbientLight aLgt = new AmbientLight(new Color3f(0.2f, 0.2f, 0.2f));
    aLgt.setName("l1");
View Full Code Here

Examples of com.xith3d.scenegraph.TransformGroup

 

  // Composed transformation
  public TransformDataXith3d( TransformGroupNode node, TransformData transformRoot) {
    super(node, transformRoot);
    this.group = new TransformGroup();
    init();
  }
View Full Code Here

Examples of javax.media.j3d.TransformGroup

    BranchGroup objRoot = scene.getBranchgroup();

    Appearance a = new Appearance();
    a.setPolygonAttributes(new PolygonAttributes(PolygonAttributes.POLYGON_LINE, PolygonAttributes.CULL_NONE, 0));
    TransformGroup sphereTrans = new TransformGroup();
    sphereTrans.addChild(new Sphere(1.f, Sphere.GENERATE_NORMALS,40, a));

    scene.detach();
    objRoot.setCapability(BranchGroup.ALLOW_CHILDREN_EXTEND);
    objRoot.addChild(sphereTrans);
View Full Code Here

Examples of javax.media.j3d.TransformGroup

        BranchGroup objRoot = new BranchGroup();
        // Create the TransformGroup node and initialize it to the
        // identity. Enable the TRANSFORM_WRITE capability so that
        // our behavior code can modify it at run time. Add it to
        // the root of the subgraph.
        TransformGroup objTrans = new TransformGroup();
        Transform3D t3dTrans = new Transform3D();
        objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
        objTrans.setTransform(t3dTrans);
        objRoot.addChild(objTrans);
        BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0),
                100.0);
        // Set up the ambient light
        Color3f ambientColor = new Color3f(0.3f, 0.3f, 0.3f);
View Full Code Here

Examples of javax.media.j3d.TransformGroup

   * to hold the shape defined by the data in the file.
   * A transformation will then be applied to scale and center the shape. 
   */
  public XYZResultNodeJava3D(ActiveNode parent) {
    super(parent);
        transformGroup = new TransformGroup();
        transformGroup.setUserData(this);
        transformGroup.setPickable(true);
        transformGroup.setCapability(TransformGroup.ALLOW_BOUNDS_READ);
        transformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
        transformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
View Full Code Here

Examples of javax.media.j3d.TransformGroup

 
  protected transient TransformGroup transformGroup;
   
  public TransformGroupNodeJava3D(ActiveNode parent) {
    super(parent);
    transformGroup = new TransformGroup();
    transformGroup.setUserData(this);
    transformGroup.setPickable(true);
    transformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
    transformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    SceneNodeJava3D.addChildToParentGroup((Group)getParent().get3DObject(), transformGroup);
View Full Code Here

Examples of javax.media.j3d.TransformGroup

   
   
   
    private void readObject(java.io.ObjectInputStream in) throws java.lang.ClassNotFoundException, java.io.IOException {
      in.defaultReadObject();
      transformGroup = new TransformGroup();
      transformGroup.setUserData(this);
      transformGroup.setPickable(true);
      transformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
      transformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
    }
View Full Code Here

Examples of javax.media.j3d.TransformGroup

 
 
  // Composed transformation
  public TransformDataJava3d( TransformGroupNode node, TransformData transformRoot) {
    super(node, transformRoot);
    this.group = new TransformGroup();
    init();
  }
View Full Code Here
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.