|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.media.j3d.VirtualUniverse
com.vwp.j3d.utils.universe.MultiUniverse
public class MultiUniverse
This class sets up a user environment to quickly and easily get a Java 3D program up and running with more than one View and Canvas3D. This class bases on the SimpleUniverse and creates all the necessary objects on the "view" side of the scene graph. Specifically, this class creates a locale, ViewingPlatforms and Viewer objects (all with their default values).
| Constructor Summary | |
|---|---|
MultiUniverse(int numTransforms)
Creates a locale and prepares for the given number of transforms (and therefore View, ViewPlatform and Canvas3D objects). |
|
| Method Summary | |
|---|---|
void |
addBranchGraph(javax.media.j3d.BranchGroup bg)
Used to add Nodes to the geometry side (as opposed to the view side) of the scene graph. |
void |
cleanup()
Cleanup memory use and reference by MultiUniverse. |
javax.media.j3d.View |
createView(javax.media.j3d.Canvas3D canvas)
This method attaches the given Canvas3D object to the universe and creates the required ViewPlatform and View object for it. |
com.sun.j3d.utils.universe.Viewer |
getViewer(int num)
Returns the Viewer object associated with this scene graph. |
com.sun.j3d.utils.universe.ViewingPlatform |
getViewingPlatform(int num)
Returns the ViewingPlatform object associated with this scene graph and with the specified Canvas3D-number. |
| Methods inherited from class javax.media.j3d.VirtualUniverse |
|---|
getAllLocales, getJ3DThreadPriority, getProperties, numLocales, removeAllLocales, removeLocale, setJ3DThreadPriority |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiUniverse(int numTransforms)
numTransforms - The number of View-Transforms and Canvas3D objects
which have to becontrolled by this objectcreateView(Canvas3D canvas)| Method Detail |
|---|
public javax.media.j3d.View createView(javax.media.j3d.Canvas3D canvas)
canvas - the Canvas3D object which has to be attached to the
Universe
public com.sun.j3d.utils.universe.Viewer getViewer(int num)
num - Specifies the number of the View which has to be returned. This
number isequal to the number of createView()-calls which have been
necessary to set up the View for the Canvas3D
public com.sun.j3d.utils.universe.ViewingPlatform getViewingPlatform(int num)
num - specifies the number of the View which has to be returned. This
number isequal to the number of createView()-calls which have been
necessary to set up the View for the Canvas3D
public void addBranchGraph(javax.media.j3d.BranchGroup bg)
bg - the BranchGroup to attach to this Universe's Locale.public void cleanup()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||