Package ffx.ui.behaviors
Class PickRotateBehavior
java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Leaf
org.jogamp.java3d.Behavior
ffx.ui.behaviors.PickMouseBehavior
ffx.ui.behaviors.PickRotateBehavior
- All Implemented Interfaces:
MouseBehaviorCallback
The PickRotateBehavior class implements a mouse rotate behavior on a picked object.
- Author:
- Michael J. Schnieders
-
Field Summary
FieldsFields inherited from class ffx.ui.behaviors.PickMouseBehavior
buttonPress, conditions, controlButton, currGrp, mevent, pickCanvas, shiftButton, wakeupConditionFields 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_REPORTINGFields inherited from interface ffx.ui.behaviors.MouseBehaviorCallback
ORBIT, PROPERTIES, ROTATE, SELECTION, TRANSLATE, ZOOM -
Constructor Summary
ConstructorsConstructorDescriptionPickRotateBehavior(org.jogamp.java3d.BranchGroup bg, org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.Bounds bounds, org.jogamp.java3d.TransformGroup VPTG, int pickMode) Constructor for PickRotateBehavior. -
Method Summary
Modifier and TypeMethodDescriptionintReturn the pickMode component of this PickRotateBehavior.voidsetPickMode(int pickMode) Sets the pickMode component of this PickRotateBehavior to the value of the passed pickMode.voidRegister the class @param callback to be called each time the picked object moves.voidtransformChanged(int type, org.jogamp.java3d.Transform3D transform) Callback method from MouseRotate This is used when the Picking callback is enabled.voidtransformClicked(int type, org.jogamp.java3d.Transform3D transform) transformClickedvoidtransformDoubleClicked(int type, org.jogamp.java3d.Transform3D transform) transformDoubleClickedvoidupdateScene(int xpos, int ypos) Update the scene to manipulate any nodes.Methods inherited from class ffx.ui.behaviors.PickMouseBehavior
initialize, processStimulus, setToleranceMethods inherited from class org.jogamp.java3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOnMethods 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, setPickableMethods inherited from class org.jogamp.java3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString
-
Field Details
-
drag
-
-
Constructor Details
-
PickRotateBehavior
public PickRotateBehavior(org.jogamp.java3d.BranchGroup bg, org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.Bounds bounds, org.jogamp.java3d.TransformGroup VPTG, int pickMode) Constructor for PickRotateBehavior.- Parameters:
bg- aBranchGroupobject.canvas- aCanvas3Dobject.bounds- aBoundsobject.VPTG- aTransformGroupobject.pickMode- a int.
-
-
Method Details
-
getPickMode
public int getPickMode()Return the pickMode component of this PickRotateBehavior.- Returns:
- a int.
-
setPickMode
public void setPickMode(int pickMode) Sets the pickMode component of this PickRotateBehavior to the value of the passed pickMode. @param pickMode the pickMode to be copied.- Parameters:
pickMode- a int.
-
setupCallback
Register the class @param callback to be called each time the picked object moves.- Parameters:
c- aPickingCallbackobject.
-
transformChanged
public void transformChanged(int type, org.jogamp.java3d.Transform3D transform) Callback method from MouseRotate This is used when the Picking callback is enabled. transformChanged- Specified by:
transformChangedin interfaceMouseBehaviorCallback- Parameters:
type- a int.transform- aTransform3Dobject.
-
transformClicked
public void transformClicked(int type, org.jogamp.java3d.Transform3D transform) transformClicked- Specified by:
transformClickedin interfaceMouseBehaviorCallback- Parameters:
type- a int.transform- aTransform3Dobject.
-
transformDoubleClicked
public void transformDoubleClicked(int type, org.jogamp.java3d.Transform3D transform) transformDoubleClicked- Specified by:
transformDoubleClickedin interfaceMouseBehaviorCallback- Parameters:
type- a int.transform- aTransform3Dobject.
-
updateScene
public void updateScene(int xpos, int ypos) Update the scene to manipulate any nodes. This is not meant to be called by users. Behavior automatically calls this. You can call this only if you know what you are doing.- Specified by:
updateScenein classPickMouseBehavior- Parameters:
xpos- Current mouse X pos.ypos- Current mouse Y pos.
-