Class MouseSelection

java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Leaf
org.jogamp.java3d.Behavior
ffx.ui.behaviors.MouseBehavior
ffx.ui.behaviors.MouseSelection

public class MouseSelection extends MouseBehavior
The MouseSelection class implements a mouse selection behavior.
Author:
Michael J. Schnieders
  • Field Summary

    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
    MouseSelection(int flags, org.jogamp.java3d.TransformGroup VPTG)
    Constructor for MouseSelection.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Return the x-axis movement multipler.
    double
    Return the y-axis movement multipler.
    void
    initialize
    void
    processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> criteria)
    void
    setFactor(double factor)
    Set the x-axis amd y-axis movement multipler with factor.
    void
    setFactor(double xFactor, double yFactor)
    Set the x-axis amd y-axis movement multipler with xFactor and yFactor respectively.
    void
    The transformChanged method in the callback class will be called every time the transform is updated
    void
    transformChanged(org.jogamp.java3d.Transform3D transform)
    transformChanged

    Methods inherited from class ffx.ui.behaviors.MouseBehavior

    processMouseEvent, setTransformGroup, wakeup

    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
  • Constructor Details

    • MouseSelection

      public MouseSelection(int flags, org.jogamp.java3d.TransformGroup VPTG)
      Constructor for MouseSelection.
      Parameters:
      flags - a int.
      VPTG - a TransformGroup object.
  • Method Details

    • getXFactor

      public double getXFactor()
      Return the x-axis movement multipler.

      getXFactor

      Returns:
      a double.
    • getYFactor

      public double getYFactor()
      Return the y-axis movement multipler.

      getYFactor

      Returns:
      a double.
    • initialize

      public void initialize()
      initialize
      Overrides:
      initialize in class MouseBehavior
    • processStimulus

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

      public void setFactor(double factor)
      Set the x-axis amd y-axis movement multipler with factor.

      setFactor

      Parameters:
      factor - a double.
    • setFactor

      public void setFactor(double xFactor, double yFactor)
      Set the x-axis amd y-axis movement multipler with xFactor and yFactor respectively.

      setFactor

      Parameters:
      xFactor - a double.
      yFactor - a double.
    • setupCallback

      public void setupCallback(MouseBehaviorCallback c)
      The transformChanged method in the callback class will be called every time the transform is updated

      setupCallback

      Parameters:
      c - a MouseBehaviorCallback object.
    • transformChanged

      public void transformChanged(org.jogamp.java3d.Transform3D transform)
      transformChanged
      Parameters:
      transform - a Transform3D object.