Package ffx.ui.behaviors
Class GlobalBehavior
java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Leaf
org.jogamp.java3d.Behavior
org.jogamp.java3d.utils.behaviors.vp.ViewPlatformBehavior
org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
org.jogamp.java3d.utils.behaviors.vp.OrbitBehavior
ffx.ui.behaviors.GlobalBehavior
- All Implemented Interfaces:
KeyListener
,MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
public class GlobalBehavior
extends org.jogamp.java3d.utils.behaviors.vp.OrbitBehavior
The GlobalBehavior class allows mouse control over camera position, adding a few functions to the
OrbitBehavior class.
- Author:
- Michael J. Schnieders
-
Field Summary
Fields inherited from class org.jogamp.java3d.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 org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
canvases, frameWakeup, KEY_LISTENER, motion, MOUSE_LISTENER, MOUSE_MOTION_LISTENER, MOUSE_WHEEL_LISTENER, POST_ID, postWakeup, targetTransform
Fields inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformBehavior
homeTransform, targetTG, vp
Fields inherited from class org.jogamp.java3d.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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
-
Constructor Summary
ConstructorDescriptionConstructor for GlobalBehavior.GlobalBehavior
(org.jogamp.java3d.Canvas3D canvas) Constructor for GlobalBehavior. -
Method Summary
Modifier and TypeMethodDescriptionvoid
centerView
(boolean resetRotation, boolean resetTranslation) centerViewvoid
integrateTransformsvoid
setEnable
(boolean b) void
setUpCallbackMethods inherited from class org.jogamp.java3d.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 org.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
initialize, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, processStimulus, queueAWTEvent, setListenerFlags
Methods inherited from class org.jogamp.java3d.utils.behaviors.vp.ViewPlatformBehavior
getHomeTransform, getViewingPlatform, goHome, setHomeTransform
Methods inherited from class org.jogamp.java3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
Methods inherited from class org.jogamp.java3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
Methods inherited from class org.jogamp.java3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString
-
Constructor Details
-
GlobalBehavior
public GlobalBehavior()Constructor for GlobalBehavior. -
GlobalBehavior
public GlobalBehavior(org.jogamp.java3d.Canvas3D canvas) Constructor for GlobalBehavior.- Parameters:
canvas
- aCanvas3D
object.
-
-
Method Details
-
centerView
public void centerView(boolean resetRotation, boolean resetTranslation) centerView- Parameters:
resetRotation
- a boolean.resetTranslation
- a boolean.
-
integrateTransforms
public void integrateTransforms()integrateTransforms- Overrides:
integrateTransforms
in classorg.jogamp.java3d.utils.behaviors.vp.OrbitBehavior
-
setEnable
public void setEnable(boolean b) - Overrides:
setEnable
in classorg.jogamp.java3d.utils.behaviors.vp.ViewPlatformAWTBehavior
-
setUpCallback
setUpCallback- Parameters:
m
- aMouseBehaviorCallback
object.
-