Package ffx.ui
Class GraphicsPicking
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.GraphicsPicking
The GraphicsPicking class is used to make selections and measurements.
- Author:
- Michael J. Schnieders
-
Nested Class Summary
Nested Classes -
Field Summary
Fields 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_REPORTING -
Constructor Summary
ConstructorsConstructorDescriptionGraphicsPicking(org.jogamp.java3d.BranchGroup base, org.jogamp.java3d.Bounds bounds, GraphicsCanvas graphicsCanvas, MainPanel mainPanel) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear currently selected nodesbooleanGetter for the fieldpicking.voidsetPicking(boolean m) Setter for the fieldpicking.voidupdateScene(int xpos, int ypos) Subclasses shall implement this update function.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
-
Constructor Details
-
GraphicsPicking
public GraphicsPicking(org.jogamp.java3d.BranchGroup base, org.jogamp.java3d.Bounds bounds, GraphicsCanvas graphicsCanvas, MainPanel mainPanel) Constructor- Parameters:
base- Base of the Scenegraphbounds- Behavior boundsgraphicsCanvas- Scene Canvas3DmainPanel- MainPanel
-
-
Method Details
-
clear
public void clear()Clear currently selected nodes -
getPicking
public boolean getPicking()Getter for the fieldpicking.- Returns:
- a boolean.
-
setPicking
public void setPicking(boolean m) Setter for the fieldpicking.- Parameters:
m- a boolean.
-
updateScene
public void updateScene(int xpos, int ypos) Subclasses shall implement this update function.Called by Java3D when an atom is picked
- Specified by:
updateScenein classPickMouseBehavior- Parameters:
xpos- a int.ypos- a int.
-