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 Link icon

    Fields
    Modifier and Type
    Field
    Description
    protected 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 Link icon

    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 Link icon

    Constructors
    Constructor
    Description
    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.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    initialize
    void
    processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> criteria)
    void
    setTolerance(float tol)
    setTolerance
    abstract void
    updateScene(int xpos, int ypos)
    Subclasses shall implement this update function.

    Methods inherited from class org.jogamp.java3d.Behavior Link icon

    getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn

    Methods inherited from class org.jogamp.java3d.Node Link icon

    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 Link icon

    clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details Link icon

    • pickCanvas Link icon

      protected org.jogamp.java3d.utils.picking.PickCanvas pickCanvas
    • conditions Link icon

      protected org.jogamp.java3d.WakeupCriterion[] conditions
    • wakeupCondition Link icon

      protected org.jogamp.java3d.WakeupOr wakeupCondition
    • buttonPress Link icon

      protected boolean buttonPress
    • shiftButton Link icon

      protected boolean shiftButton
    • controlButton Link icon

      protected boolean controlButton
    • currGrp Link icon

      protected org.jogamp.java3d.TransformGroup currGrp
    • mevent Link icon

      protected MouseEvent mevent
  • Constructor Details Link icon

    • PickMouseBehavior Link icon

      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 - a Canvas3D object.
      root - a BranchGroup object.
      bounds - a Bounds object.
  • Method Details Link icon

    • initialize Link icon

      public void initialize()
      initialize
      Specified by:
      initialize in class org.jogamp.java3d.Behavior
    • processStimulus Link icon

      public void processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> criteria)
      Specified by:
      processStimulus in class org.jogamp.java3d.Behavior
    • setTolerance Link icon

      public void setTolerance(float tol)
      setTolerance
      Parameters:
      tol - a float.
    • updateScene Link icon

      public abstract void updateScene(int xpos, int ypos)
      Subclasses shall implement this update function.
      Parameters:
      xpos - a int.
      ypos - a int.