Package com.xith3d.scenegraph

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


    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

   
    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

 

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

TOP

Related Classes of com.xith3d.scenegraph.TransformGroup

Copyright © 2018 www.massapicom. 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.