ffe.behaviors
Class EventDispatch

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended byffe.behaviors.EventDispatch

public class EventDispatch
extends javax.media.j3d.Behavior

The EventDispatch class listens for mouse events over the Java3D canvas, dispatching work to more specialized classes.


Field Summary
static int BEHAVIORDONEPOST
           
static int ROTATEPOST
           
static int TRANSLATEPOST
           
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Fields inherited from class javax.media.j3d.SceneGraphObject
 
Constructor Summary
EventDispatch(MainPanel f, Graphics3D g, GlobalAxis n, com.sun.j3d.utils.universe.SimpleUniverse u, javax.media.j3d.Bounds b, javax.media.j3d.BranchGroup root, javax.media.j3d.TransformGroup tg)
           
 
Method Summary
 void centerView(boolean resetRotation, boolean resetTranslation, boolean resetZoom)
           
 void initialize()
           
 void processMouseEvent(java.awt.event.MouseEvent evt)
           
 void processStimulus(java.util.Enumeration criteria)
           
 void setGlobalCenter(double[] d)
           
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROTATEPOST

public static int ROTATEPOST

TRANSLATEPOST

public static int TRANSLATEPOST

BEHAVIORDONEPOST

public static int BEHAVIORDONEPOST
Constructor Detail

EventDispatch

public EventDispatch(MainPanel f,
                     Graphics3D g,
                     GlobalAxis n,
                     com.sun.j3d.utils.universe.SimpleUniverse u,
                     javax.media.j3d.Bounds b,
                     javax.media.j3d.BranchGroup root,
                     javax.media.j3d.TransformGroup tg)
Method Detail

processMouseEvent

public void processMouseEvent(java.awt.event.MouseEvent evt)

processStimulus

public void processStimulus(java.util.Enumeration criteria)

initialize

public void initialize()

centerView

public void centerView(boolean resetRotation,
                       boolean resetTranslation,
                       boolean resetZoom)

setGlobalCenter

public void setGlobalCenter(double[] d)