|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.VirtualUniverse
net.jbeans.j3d.universe.Universe
This class is basically the same as the SimpleUniverse. It, however, uses Locale to view and edit the SceneGraph nodes.
VirtualUniverse
Field Summary |
Fields inherited from class javax.media.j3d.VirtualUniverse |
|
Constructor Summary | |
(package private) |
Universe()
Creates a locale, a single ViewingPlatform, and and a Viewer object (both with their default values). |
(package private) |
Universe(javax.media.j3d.Canvas3D canvas)
Creates a locale, a single ViewingPlatform (with default values), and and a Viewer object. |
(package private) |
Universe(javax.media.j3d.HiResCoord origin,
int numTransforms,
javax.media.j3d.Canvas3D canvas,
java.net.URL userConfig)
Creates the "view" side of the scene graph. |
(package private) |
Universe(ViewingPlatform viewingPlatform,
com.sun.j3d.utils.universe.Viewer viewer)
Creates the "view" side of the scene graph. |
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 |
addViewer(int index,
com.sun.j3d.utils.universe.Viewer viewer)
adds a viewer to the specified viewingPlatform. |
void |
addViewer(com.sun.j3d.utils.universe.Viewer viewer)
|
void |
addViewingPlatform(ViewingPlatform viewingPlatform)
add a viewing platform. |
protected World |
createNewWorld(int numTransformGroup)
|
javax.media.j3d.Canvas3D |
getCanvas()
Returns the Canvas3D object associated with this Java 3D Universe. |
javax.media.j3d.Canvas3D |
getCanvas(int canvasNum)
Returns the Canvas3D object at the specified index associated with this Java 3D Universe. |
protected int |
getInitialNumChild()
|
javax.media.j3d.Locale |
getLocale()
Returns the Locale object associated with this scene graph. |
int |
getNumOfChildren()
|
static java.awt.GraphicsConfiguration |
getPreferredConfiguration()
Finds the preferred GraphicsConfiguration object
for the system. |
com.sun.j3d.utils.universe.Viewer |
getViewer()
Returns the Viewer object associated with this scene graph. |
com.sun.j3d.utils.universe.Viewer |
getViewer(int index)
Returns the Viewer object associated with this scene graph. |
ViewingPlatform |
getViewingPlatform()
Returns the ViewingPlatform object associated with this scene graph. |
ViewingPlatform |
getViewingPlatform(int index)
Returns the ViewingPlatform object associated with this scene graph. |
World |
getWorld()
|
void |
removeAllBranchGraph()
|
void |
removeBranchGraph(javax.media.j3d.BranchGroup bg)
Detaches the specified BranchGroup object. |
void |
removeViewer(com.sun.j3d.utils.universe.Viewer viewer)
removes the specified viewer. |
void |
removeViewingPlatform(ViewingPlatform viewingPlatform)
removes the specified viewing platform. |
void |
setInitialNumChildren()
|
void |
setWorld(World world)
|
Methods inherited from class javax.media.j3d.VirtualUniverse |
getAllLocales, getJ3DThreadPriority, getProperties, numLocales, removeAllLocales, removeLocale, setJ3DThreadPriority |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
Universe()
Locale
,
Viewer
,
ViewingPlatform
Universe(javax.media.j3d.Canvas3D canvas)
canvas
- The canvas to associate with the Viewer object. Passing
in null will cause this parameter to be ignored and a canvas to be
created by the utility.Locale
,
Viewer
,
ViewingPlatform
Universe(javax.media.j3d.HiResCoord origin, int numTransforms, javax.media.j3d.Canvas3D canvas, java.net.URL userConfig)
origin
- The origin used to set the origin of the Locale object.
If this object is null, then 0.0 is used.numTransforms
- The number of transforms to be in the
MultiTransformGroup object.canvas
- The canvas to draw into. If this is null, it is
ignored and a canvas will be created by the utility.userConfig
- The URL to the user's configuration file, used
by the Viewer object. Passing in null causes the default values
to be used.Locale
,
Viewer
,
ViewingPlatform
,
MultiTransformGroup
Universe(ViewingPlatform viewingPlatform, com.sun.j3d.utils.universe.Viewer viewer)
viewingPlatform
- The viewingPlatform to use to create
the "view" side of the scene graph.viewer
- The viewer object to use to create
the "view" side of the scene graph.Method Detail |
protected World createNewWorld(int numTransformGroup)
public final void setWorld(World world)
public int getNumOfChildren()
public final void setInitialNumChildren()
protected final int getInitialNumChild()
public final javax.media.j3d.Locale getLocale()
public final com.sun.j3d.utils.universe.Viewer getViewer()
public final com.sun.j3d.utils.universe.Viewer getViewer(int index)
public final void addViewer(com.sun.j3d.utils.universe.Viewer viewer)
public final void addViewer(int index, com.sun.j3d.utils.universe.Viewer viewer)
public final void removeViewer(com.sun.j3d.utils.universe.Viewer viewer)
public final ViewingPlatform getViewingPlatform()
public final ViewingPlatform getViewingPlatform(int index)
public final void addViewingPlatform(ViewingPlatform viewingPlatform)
public final void removeViewingPlatform(ViewingPlatform viewingPlatform)
public javax.media.j3d.Canvas3D getCanvas()
Viewer
public javax.media.j3d.Canvas3D getCanvas(int canvasNum)
canvasNum
- The index of the Canvas3D object to retrieve.
If there is no Canvas3D object for the given index, null is returned.
public World getWorld()
public void addBranchGraph(javax.media.j3d.BranchGroup bg)
public final void removeBranchGraph(javax.media.j3d.BranchGroup bg)
public final void removeAllBranchGraph()
public static java.awt.GraphicsConfiguration getPreferredConfiguration()
GraphicsConfiguration
object
for the system. This object can then be used to create the
Canvas3D objet for this system.
GraphicsConfiguration
object for
the system.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |