FileDocCategorySizeDatePackage
AxisApp.javaAPI DocExample6145Mon Nov 26 02:13:06 GMT 2001None

AxisApp

public class AxisApp extends Applet

Fields Summary
Constructors Summary
public AxisApp()

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

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

        BranchGroup scene = createSceneGraph();

        // SimpleUniverse is a Convenience Utility class
        SimpleUniverse simpleU = new SimpleUniverse(canvas3D);

	// This will move the ViewPlatform back a bit so the
	// objects in the scene can be viewed.
        simpleU.getViewingPlatform().setNominalViewingTransform();

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


	BranchGroup objRoot = new Axis().getBG();

	// Let Java 3D perform optimizations on this scene graph.
        objRoot.compile();

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

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