Package ffx.ui.behaviors
Class PickMouseBehavior
java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Leaf
org.jogamp.java3d.Behavior
ffx.ui.behaviors.PickMouseBehavior
- Direct Known Subclasses:
GraphicsPicking
,PickOrbitBehavior
,PickPropertiesBehavior
,PickRotateBehavior
,PickSelectionBehavior
,PickTranslateBehavior
,PickZoomBehavior
public abstract class PickMouseBehavior
extends org.jogamp.java3d.Behavior
The PickMouseBehavior class is the base class for mouse picking behaviors.
- Author:
- Michael J. Schnieders
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected org.jogamp.java3d.WakeupCriterion[]
protected boolean
protected org.jogamp.java3d.TransformGroup
protected MouseEvent
protected org.jogamp.java3d.utils.picking.PickCanvas
protected boolean
protected org.jogamp.java3d.WakeupOr
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
ConstructorDescriptionPickMouseBehavior
(org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.BranchGroup root, org.jogamp.java3d.Bounds bounds) Creates a PickMouseBehavior given current canvas, root of the tree to operate on, and the bounds. -
Method Summary
Modifier and TypeMethodDescriptionvoid
initializevoid
processStimulus
(Iterator<org.jogamp.java3d.WakeupCriterion> criteria) void
setTolerance
(float tol) setToleranceabstract void
updateScene
(int xpos, int ypos) Subclasses shall implement this update function.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
-
Field Details
-
pickCanvas
protected org.jogamp.java3d.utils.picking.PickCanvas pickCanvas -
conditions
protected org.jogamp.java3d.WakeupCriterion[] conditions -
wakeupCondition
protected org.jogamp.java3d.WakeupOr wakeupCondition -
buttonPress
protected boolean buttonPress -
shiftButton
protected boolean shiftButton -
controlButton
protected boolean controlButton -
currGrp
protected org.jogamp.java3d.TransformGroup currGrp -
mevent
-
-
Constructor Details
-
PickMouseBehavior
public PickMouseBehavior(org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.BranchGroup root, org.jogamp.java3d.Bounds bounds) Creates a PickMouseBehavior given current canvas, root of the tree to operate on, and the bounds.- Parameters:
canvas
- aCanvas3D
object.root
- aBranchGroup
object.bounds
- aBounds
object.
-
-
Method Details
-
initialize
public void initialize()initialize- Specified by:
initialize
in classorg.jogamp.java3d.Behavior
-
processStimulus
- Specified by:
processStimulus
in classorg.jogamp.java3d.Behavior
-
setTolerance
public void setTolerance(float tol) setTolerance- Parameters:
tol
- a float.
-
updateScene
public abstract void updateScene(int xpos, int ypos) Subclasses shall implement this update function.- Parameters:
xpos
- a int.ypos
- a int.
-