FileDocCategorySizeDatePackage
BoxPrimitiveApp.javaAPI DocExample1631Sun Nov 25 23:19:36 GMT 2001None

BoxPrimitiveApp

public class BoxPrimitiveApp extends Applet

Fields Summary
Constructors Summary
public BoxPrimitiveApp()

        setLayout(new BorderLayout());
        GraphicsConfiguration config =
           SimpleUniverse.getPreferredConfiguration();

        Canvas3D canvas3D = new Canvas3D(config);
        add("Center", canvas3D);

        BranchGroup scene = createSceneGraph();

        SimpleUniverse simpleU = new SimpleUniverse(canvas3D);

        simpleU.getViewingPlatform().setNominalViewingTransform();

        simpleU.addBranchGraph(scene);
    
Methods Summary
public BranchGroupcreateSceneGraph()


        // Create the root of the branch graph
	BranchGroup objRoot = new BranchGroup();
	// Add simple shape leaf node to scene graph
        objRoot.addChild(new Box());
	return objRoot;

    
public static voidmain(java.lang.String[] args)

        Frame frame = new MainFrame(new BoxPrimitiveApp(), 256, 256);