|
|||||||||||
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
net.jbeans.j3d.universe.SelectableUniverse
This class is basically the same as the SimpleUniverse. It, however, allows a user to select an object.
Universe
,
PickMouseListener
Field Summary | |
protected javax.vecmath.Point3d |
center
A current center which is the target of for rot/trans/zoom |
protected javax.media.j3d.TransformGroup |
currentTG
A current transform group which is the target of for rot/trans/zoom |
protected javax.media.j3d.TransformGroup |
viewingTG
A transform group of viewingplatform |
protected javax.media.j3d.TransformGroup |
worldTG
A transform group of world |
Fields inherited from class javax.media.j3d.VirtualUniverse |
|
Constructor Summary | |
(package private) |
SelectableUniverse()
Creates a locale, a single ViewingPlatform, and and a Viewer object (both with their default values). |
(package private) |
SelectableUniverse(javax.media.j3d.Canvas3D canvas)
Creates a locale, a single ViewingPlatform (with default values), and and a Viewer object. |
(package private) |
SelectableUniverse(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) |
SelectableUniverse(ViewingPlatform viewingPlatform,
Viewer viewer)
Creates the "view" side of the scene graph. |
Method Summary | |
void |
addPickMouseListener(PickMouseListener l)
Adds a PickMouseListener to the slider. |
protected World |
createNewWorld(int numTransformGroup)
|
protected void |
firePickedEvent(PickMouseEvent event)
Send the Pick node to listeners. |
protected void |
fireSelectedEvent(PickMouseEvent event)
Send the Selection node to listeners. |
protected javax.vecmath.Point3d |
getCenter()
|
void |
picked(PickMouseEvent event)
Invoked when an object is picked. |
void |
removePickMouseListener(PickMouseListener l)
Removes a PickMouseListener from the slider. |
void |
selected(PickMouseEvent event)
Invoked when an object is selected. |
protected void |
setCenter(javax.vecmath.Point3d center)
|
void |
setPickMode(int pickMode)
|
protected void |
setupPickMouse(World world)
|
protected void |
setupTransformGroups(World world)
|
Methods inherited from class net.jbeans.j3d.universe.Universe |
addBranchGraph, addViewer, addViewer, addViewingPlatform, getCanvas, getCanvas, getInitialNumChild, getLocale, getNumOfChildren, getPreferredConfiguration, getViewer, getViewer, getViewingPlatform, getViewingPlatform, getWorld, removeAllBranchGraph, removeBranchGraph, removeViewer, removeViewingPlatform, setInitialNumChildren, setWorld |
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 |
Field Detail |
protected javax.media.j3d.TransformGroup viewingTG
protected javax.media.j3d.TransformGroup worldTG
protected javax.media.j3d.TransformGroup currentTG
protected javax.vecmath.Point3d center
Constructor Detail |
SelectableUniverse()
Locale
,
Viewer
,
ViewingPlatform
SelectableUniverse(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
SelectableUniverse(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
SelectableUniverse(ViewingPlatform viewingPlatform, 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 void setCenter(javax.vecmath.Point3d center)
protected javax.vecmath.Point3d getCenter()
protected World createNewWorld(int numTransformGroup)
createNewWorld
in class Universe
public void setPickMode(int pickMode)
protected void setupTransformGroups(World world)
protected void setupPickMouse(World world)
public void picked(PickMouseEvent event)
picked
in interface PickMouseListener
public void selected(PickMouseEvent event)
selected
in interface PickMouseListener
public void addPickMouseListener(PickMouseListener l)
l
- the PickMouseListener to addpublic void removePickMouseListener(PickMouseListener l)
l
- the PickMouseListener to removeprotected void firePickedEvent(PickMouseEvent event)
protected void fireSelectedEvent(PickMouseEvent event)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |