net.jbeans.j3d.universe
Class SeekableUniverse
java.lang.Object
javax.media.j3d.VirtualUniverse
net.jbeans.j3d.universe.Universe
net.jbeans.j3d.universe.SelectableUniverse
net.jbeans.j3d.universe.ManipulatableUniverse
net.jbeans.j3d.universe.SeekableUniverse
- All Implemented Interfaces:
- java.util.EventListener, ManipulatorCallback, PickMouseListener
- public class SeekableUniverse
- extends ManipulatableUniverse
- implements ManipulatorCallback
generally describe SeekableUniverse in here
- Version:
- $Revision: 1.3 $
- Author:
- Masahiro Takatsuka (masa@jbeans.net)
- See Also:
ManipulatableUniverse
,
ManipulatorCallback
Fields inherited from class net.jbeans.j3d.universe.ManipulatableUniverse |
MOUSE_DEFAULT, MOUSE_ROLL, MOUSE_ROTATE, MOUSE_SCALE, MOUSE_TRANSLATE, MOUSE_ZOOM, mouseBehavior, mouseButton1Mode, TARGET_OBJECT, TARGET_VIEWER, TARGET_WORLD |
Fields inherited from class javax.media.j3d.VirtualUniverse |
|
Constructor Summary |
SeekableUniverse()
Creates a locale, a single ViewingPlatform, and
and a Viewer object (both with their default values). |
SeekableUniverse(javax.media.j3d.Canvas3D canvas)
Creates a locale, a single ViewingPlatform (with default values), and
and a Viewer object. |
SeekableUniverse(javax.media.j3d.HiResCoord origin,
int numTransforms,
javax.media.j3d.Canvas3D canvas,
java.net.URL userConfig)
Creates the "view" side of the scene graph. |
SeekableUniverse(ViewingPlatform viewingPlatform,
Viewer viewer)
Creates the "view" side of the scene graph. |
Methods inherited from class net.jbeans.j3d.universe.Universe |
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 |
MOUSE_SEEK
public static final int MOUSE_SEEK
- See Also:
- Constant Field Values
SeekableUniverse
public SeekableUniverse()
- Creates a locale, a single ViewingPlatform, and
and a Viewer object (both with their default values).
- See Also:
Locale
,
Viewer
,
ViewingPlatform
SeekableUniverse
public SeekableUniverse(javax.media.j3d.Canvas3D canvas)
- Creates a locale, a single ViewingPlatform (with default values), and
and a Viewer object. The Viewer object uses default values for
everything but the canvas.
- Parameters:
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.- See Also:
Locale
,
Viewer
,
ViewingPlatform
SeekableUniverse
public SeekableUniverse(javax.media.j3d.HiResCoord origin,
int numTransforms,
javax.media.j3d.Canvas3D canvas,
java.net.URL userConfig)
- Creates the "view" side of the scene graph. The passed in parameters
override the default values where appropriate.
- Parameters:
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.- See Also:
Locale
,
Viewer
,
ViewingPlatform
,
MultiTransformGroup
SeekableUniverse
public SeekableUniverse(ViewingPlatform viewingPlatform,
Viewer viewer)
- Creates the "view" side of the scene graph.
- Parameters:
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.
setupMouseBehaviors
protected void setupMouseBehaviors(World world)
- Overrides:
setupMouseBehaviors
in class ManipulatableUniverse
setMouseButton1Mode
public void setMouseButton1Mode(int mouseMode)
- Overrides:
setMouseButton1Mode
in class ManipulatableUniverse
transformChanged
public void transformChanged(int mode,
javax.media.j3d.Transform3D transform3d,
java.lang.Object data)
- Specified by:
transformChanged
in interface ManipulatorCallback
addBranchGraph
public 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. This is a short cut to getting the Locale object
and calling that object's addBranchGraph() method.
- Overrides:
addBranchGraph
in class Universe
viewAll
public void viewAll()
Copyright © 1995-2004 net.jbeans. All Rights Reserved.