Class MouseBehavior

java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Leaf
org.jogamp.java3d.Behavior
ffx.ui.behaviors.MouseBehavior
Direct Known Subclasses:
MouseOrbit, MouseProperties, MouseRotate, MouseSelection, MouseTranslate, MouseZoom

public abstract class MouseBehavior extends org.jogamp.java3d.Behavior
The MouseBehavior class is the Base class for all mouse manipulators.
Author:
Michael J. Schnieders
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected boolean
     
    protected org.jogamp.java3d.Transform3D
     
    protected int
     
    protected int
     
    protected boolean
     
    static final int
    Constant INVERT_INPUT=0x2
    static final int
    Constant MANUAL_WAKEUP=0x1
    protected org.jogamp.java3d.WakeupOr
     
    protected org.jogamp.java3d.WakeupCriterion[]
     
    protected org.jogamp.java3d.WakeupOnBehaviorPost
     
    protected org.jogamp.java3d.Behavior
     
    protected boolean
     
    protected org.jogamp.java3d.TransformGroup
     
    protected org.jogamp.java3d.Transform3D
     
    protected org.jogamp.java3d.Transform3D
     
    protected org.jogamp.java3d.TransformGroup
     
    protected boolean
     
    protected int
     
    protected int
     
    protected int
     
    protected int
     

    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
    MouseBehavior(int format, org.jogamp.java3d.TransformGroup VPTG)
    Constructor for MouseBehavior.
    MouseBehavior(int format, org.jogamp.java3d.TransformGroup VPTG, org.jogamp.java3d.Behavior b, int i)
    Constructor for MouseBehavior.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initialize
    void
    processMouseEvent
    abstract void
    processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> criteria)
    void
    setTransformGroup(org.jogamp.java3d.TransformGroup t)
    Setter for the field transformGroup.
    void
    Manually wake up the behavior.

    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

    • MANUAL_WAKEUP

      public static final int MANUAL_WAKEUP
      Constant MANUAL_WAKEUP=0x1

      Set this flag if you want to manually wakeup the behavior.

      See Also:
    • INVERT_INPUT

      public static final int INVERT_INPUT
      Constant INVERT_INPUT=0x2

      Set this flag if you want to invert the inputs. This is useful when the transform for the view platform is being changed instead of the transform for the object.

      See Also:
    • mouseEvents

      protected org.jogamp.java3d.WakeupCriterion[] mouseEvents
    • mouseCriterion

      protected org.jogamp.java3d.WakeupOr mouseCriterion
    • poster

      protected org.jogamp.java3d.Behavior poster
    • id

      protected int id
    • postCriterion

      protected org.jogamp.java3d.WakeupOnBehaviorPost postCriterion
    • x

      protected int x
    • y

      protected int y
    • xLast

      protected int xLast
    • yLast

      protected int yLast
    • transformGroup

      protected org.jogamp.java3d.TransformGroup transformGroup
    • transformX

      protected org.jogamp.java3d.Transform3D transformX
    • transformY

      protected org.jogamp.java3d.Transform3D transformY
    • currXform

      protected org.jogamp.java3d.Transform3D currXform
    • buttonPress

      protected boolean buttonPress
    • reset

      protected boolean reset
    • invert

      protected boolean invert
    • wakeUp

      protected boolean wakeUp
    • flags

      protected int flags
    • ViewerTG

      protected org.jogamp.java3d.TransformGroup ViewerTG
  • Constructor Details

    • MouseBehavior

      public MouseBehavior(int format, org.jogamp.java3d.TransformGroup VPTG)
      Constructor for MouseBehavior.
      Parameters:
      format - a int.
      VPTG - a TransformGroup object.
    • MouseBehavior

      public MouseBehavior(int format, org.jogamp.java3d.TransformGroup VPTG, org.jogamp.java3d.Behavior b, int i)
      Constructor for MouseBehavior.
      Parameters:
      format - a int.
      VPTG - a TransformGroup object.
      b - a Behavior object.
      i - a int.
  • Method Details

    • initialize

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

      public void processMouseEvent(MouseEvent evt)
      processMouseEvent
      Parameters:
      evt - a MouseEvent object.
    • processStimulus

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

      public void setTransformGroup(org.jogamp.java3d.TransformGroup t)
      Setter for the field transformGroup.
      Parameters:
      t - a TransformGroup object.
    • wakeup

      public void wakeup()
      Manually wake up the behavior. If MANUAL_WAKEUP flag was set upon creation, you must wake up this behavior each time it is handled.