Package ffx.ui.behaviors
Class PickPropertiesBehavior
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.PickPropertiesBehavior
- All Implemented Interfaces:
MouseBehaviorCallback
The PickPropertiesBehavior class.
- Author:
- Michael J. Schnieders
-
Field Summary
Fields inherited from class ffx.ui.behaviors.PickMouseBehavior
buttonPress, conditions, controlButton, currGrp, mevent, pickCanvas, shiftButton, wakeupCondition
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
Fields inherited from interface ffx.ui.behaviors.MouseBehaviorCallback
ORBIT, PROPERTIES, ROTATE, SELECTION, TRANSLATE, ZOOM
-
Constructor Summary
ConstructorDescriptionPickPropertiesBehavior
(org.jogamp.java3d.BranchGroup root, org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.Bounds bounds, org.jogamp.java3d.TransformGroup VPTG, int pickMode) Constructor for PickPropertiesBehavior. -
Method Summary
Modifier and TypeMethodDescriptionint
getPickModevoid
setPickMode
(int pickMode) setPickModevoid
Register the class @param callback to be called each time the picked object moves.void
transformChanged
(int type, org.jogamp.java3d.Transform3D transform) transformChangedvoid
transformClicked
(int type, org.jogamp.java3d.Transform3D transform) transformClickedvoid
transformDoubleClicked
(int type, org.jogamp.java3d.Transform3D transform) transformDoubleClickedvoid
updateScene
(int xpos, int ypos) Update the scene to manipulate any nodes.Methods inherited from class ffx.ui.behaviors.PickMouseBehavior
initialize, processStimulus, setTolerance
Methods inherited from class org.jogamp.java3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, 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
-
PickPropertiesBehavior
public PickPropertiesBehavior(org.jogamp.java3d.BranchGroup root, org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.Bounds bounds, org.jogamp.java3d.TransformGroup VPTG, int pickMode) Constructor for PickPropertiesBehavior.- Parameters:
root
- aBranchGroup
object.canvas
- aCanvas3D
object.bounds
- aBounds
object.VPTG
- aTransformGroup
object.pickMode
- a int.
-
-
Method Details
-
getPickMode
public int getPickMode()getPickMode- Returns:
- a int.
-
setPickMode
public void setPickMode(int pickMode) setPickMode- Parameters:
pickMode
- a int.
-
setupCallback
Register the class @param callback to be called each time the picked object moves.- Parameters:
c
- aPickingCallback
object.
-
transformChanged
public void transformChanged(int type, org.jogamp.java3d.Transform3D transform) transformChanged- Specified by:
transformChanged
in interfaceMouseBehaviorCallback
- Parameters:
type
- a int.transform
- aTransform3D
object.
-
transformClicked
public void transformClicked(int type, org.jogamp.java3d.Transform3D transform) transformClicked- Specified by:
transformClicked
in interfaceMouseBehaviorCallback
- Parameters:
type
- a int.transform
- aTransform3D
object.
-
transformDoubleClicked
public void transformDoubleClicked(int type, org.jogamp.java3d.Transform3D transform) transformDoubleClicked- Specified by:
transformDoubleClicked
in interfaceMouseBehaviorCallback
- Parameters:
type
- a int.transform
- aTransform3D
object.
-
updateScene
public void updateScene(int xpos, int ypos) Update the scene to manipulate any nodes.- Specified by:
updateScene
in classPickMouseBehavior
- Parameters:
xpos
- Current mouse X pos.ypos
- Current mouse Y pos.
-