ffe.behaviors
Class GlobalBehavior

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended bycom.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
                      extended bycom.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior
                          extended bycom.sun.j3d.utils.behaviors.vp.OrbitBehavior
                              extended byffe.behaviors.GlobalBehavior
All Implemented Interfaces:
java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class GlobalBehavior
extends com.sun.j3d.utils.behaviors.vp.OrbitBehavior

The GlobalBehavior class allows mouse control over camera position, adding a few functions to the OrbitBehavior class.


Field Summary
 
Fields inherited from class com.sun.j3d.utils.behaviors.vp.OrbitBehavior
DISABLE_ROTATE, DISABLE_TRANSLATE, DISABLE_ZOOM, PROPORTIONAL_ZOOM, REVERSE_ALL, REVERSE_ROTATE, REVERSE_TRANSLATE, REVERSE_ZOOM, STOP_ZOOM
 
Fields inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior
canvases, frameWakeup, KEY_LISTENER, motion, MOUSE_LISTENER, MOUSE_MOTION_LISTENER, POST_ID, postWakeup, targetTransform
 
Fields inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
homeTransform, targetTG, vp
 
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
GlobalBehavior()
           
GlobalBehavior(javax.media.j3d.Canvas3D canvas)
           
 
Method Summary
 void centerView(boolean resetRotation, boolean resetTranslation, boolean resetZoom)
           
 void integrateTransforms()
           
 void setEnable(boolean b)
           
 void setUpCallback(MouseBehaviorCallback m)
           
 
Methods inherited from class com.sun.j3d.utils.behaviors.vp.OrbitBehavior
getMinRadius, getRotateEnable, getRotationCenter, getRotXFactor, getRotYFactor, getTranslateEnable, getTransXFactor, getTransYFactor, getZoomEnable, getZoomFactor, MinRadius, processAWTEvents, processMouseEvent, ProportionalZoom, ReverseRotate, ReverseTranslate, ReverseZoom, RotateEnable, RotationCenter, RotFactors, RotXFactor, RotYFactor, setMinRadius, setProportionalZoom, setReverseRotate, setReverseTranslate, setReverseZoom, setRotateEnable, setRotationCenter, setRotFactors, setRotXFactor, setRotYFactor, setTransFactors, setTranslateEnable, setTransXFactor, setTransYFactor, setViewingPlatform, setZoomEnable, setZoomFactor, TransFactors, TranslateEnable, TransXFactor, TransYFactor, ZoomEnable, ZoomFactor
 
Methods inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformAWTBehavior
initialize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, processStimulus, queueAWTEvent, setListenerFlags
 
Methods inherited from class com.sun.j3d.utils.behaviors.vp.ViewPlatformBehavior
getHomeTransform, getViewingPlatform, goHome, setHomeTransform
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, 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
 

Constructor Detail

GlobalBehavior

public GlobalBehavior()

GlobalBehavior

public GlobalBehavior(javax.media.j3d.Canvas3D canvas)
Method Detail

setUpCallback

public void setUpCallback(MouseBehaviorCallback m)

integrateTransforms

public void integrateTransforms()

setEnable

public void setEnable(boolean b)

centerView

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