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

    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

    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

    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

    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

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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

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

    • initialize

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

      public void processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> criteria)
      Specified by:
      processStimulus in class org.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.