net.jbeans.j3d.universe
Class SeekableUniverse

java.lang.Object
  extended byjavax.media.j3d.VirtualUniverse
      extended bynet.jbeans.j3d.universe.Universe
          extended bynet.jbeans.j3d.universe.SelectableUniverse
              extended bynet.jbeans.j3d.universe.ManipulatableUniverse
                  extended bynet.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

Field Summary
static int MOUSE_SEEK
           
 
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 net.jbeans.j3d.universe.SelectableUniverse
center, currentTG, viewingTG, worldTG
 
Fields inherited from class javax.media.j3d.VirtualUniverse
 
Fields inherited from interface net.jbeans.j3d.util.manipulator.ManipulatorCallback
ROLL, ROTATE, SCALE, SEEK, TRANSLATE, ZOOM
 
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.
 
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 setMouseButton1Mode(int mouseMode)
           
protected  void setupMouseBehaviors(World world)
           
 void transformChanged(int mode, javax.media.j3d.Transform3D transform3d, java.lang.Object data)
           
 void viewAll()
           
 
Methods inherited from class net.jbeans.j3d.universe.ManipulatableUniverse
createNewWorld, getMouseButton1Mode, getMouseMode, manipulate, picked, resetCurrentTransformGroup, saveCurrentTransformGroup, setMouseMode, updateCenter
 
Methods inherited from class net.jbeans.j3d.universe.SelectableUniverse
addPickMouseListener, firePickedEvent, fireSelectedEvent, getCenter, removePickMouseListener, selected, setCenter, setPickMode, setupPickMouse, setupTransformGroups
 
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
 
Methods inherited from interface net.jbeans.j3d.util.picking.behavior.PickMouseListener
selected
 

Field Detail

MOUSE_SEEK

public static final int MOUSE_SEEK
See Also:
Constant Field Values
Constructor Detail

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.
Method Detail

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.