Package com.sun.j3d.utils.geometry

Examples of com.sun.j3d.utils.geometry.ColorCube


      ciel = new Background(new Color3f(0.9f, 0.9f, 1.0f));
      ciel.setCapability(Background.ALLOW_COLOR_WRITE);
      ciel.setApplicationBounds(new BoundingSphere(new Point3d(0, 0, 0), 80));
      parent.addChild(ciel);
     
      parent.addChild(new ColorCube(0.4));
     
      TransformGroup tg = new TransformGroup();
      Transform3D translation;
      translation = new Transform3D();
      translation.setTranslation(new Vector3f (0, 0, 20));
View Full Code Here


    TransformGroup objTrans = new TransformGroup(spin);
    objRoot.addChild(objTrans);

    // Create a simple shape leaf node, add it to the scene graph.
    // ColorCube is a Convenience Utility class
    objTrans.addChild(new ColorCube(0.4));

    //Create a raster obj
    Shape3D shape = new Shape3D(drawRaster);
    objRoot.addChild(shape);
View Full Code Here

    TransformGroup objTrans = new TransformGroup(spin);
    objRoot.addChild(objTrans);

    // Create a simple shape leaf node, add it to the scene graph.
    // ColorCube is a Convenience Utility class
    objTrans.addChild(new ColorCube(0.4));

    //Create a raster
    Shape3D shape = new Shape3D(drawRaster);
    objRoot.addChild(shape);
View Full Code Here

/*    */
/* 85 */     return shape;
/*    */   }
/*    */
/*    */   protected SceneGraphObject createNode() {
/* 89 */     return new ColorCube(this.scale);
/*    */   }
View Full Code Here

  BranchGroup objRoot = new BranchGroup();
  TransformGroup objTrans = new TransformGroup();
  objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
  objRoot.addChild(objTrans);
  objTrans.addChild(new ColorCube(0.2));
  Transform3D yAxis = new Transform3D();
  Alpha rotationAlpha = new Alpha(-1, Alpha.INCREASING_ENABLE,
          0, 0,
          4000, 0, 0,
          0, 0, 0);
View Full Code Here

  objRoot.addChild(objRotate);
  objRotate.addChild(objSpin);
  // Create a simple shape leaf node, add it to the scene graph.
  // ColorCube is a Convenience Utility class
  objSpin.addChild(new ColorCube(0.4));

  // Create a new Behavior object that will perform the desired
  // operation on the specified transform object and add it into
  // the scene graph.
  Transform3D yAxis = new Transform3D();
View Full Code Here

  TransformGroup objTrans = new TransformGroup();
  objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
  objRoot.addChild(objTrans);

  // Create a simple Shape3D node; add it to the scene graph.
  objTrans.addChild(new ColorCube(0.4));

  // Create a new Behavior object that will perform the
  // desired operation on the specified transform and add
  // it into the scene graph.
  Transform3D yAxis = new Transform3D();
View Full Code Here

TOP

Related Classes of com.sun.j3d.utils.geometry.ColorCube

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.