Class PickRotateBehavior

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.behaviors.PickRotateBehavior
All Implemented Interfaces:
MouseBehaviorCallback

public class PickRotateBehavior extends PickMouseBehavior implements MouseBehaviorCallback
The PickRotateBehavior class implements a mouse rotate behavior on a picked object.
Author:
Michael J. Schnieders
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
     

    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

    Fields inherited from interface ffx.ui.behaviors.MouseBehaviorCallback Link icon

    ORBIT, PROPERTIES, ROTATE, SELECTION, TRANSLATE, ZOOM
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    PickRotateBehavior(org.jogamp.java3d.BranchGroup bg, org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.Bounds bounds, org.jogamp.java3d.TransformGroup VPTG, int pickMode)
    Constructor for PickRotateBehavior.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    Return the pickMode component of this PickRotateBehavior.
    void
    setPickMode(int pickMode)
    Sets the pickMode component of this PickRotateBehavior to the value of the passed pickMode.
    void
    Register the class @param callback to be called each time the picked object moves.
    void
    transformChanged(int type, org.jogamp.java3d.Transform3D transform)
    Callback method from MouseRotate This is used when the Picking callback is enabled.
    void
    transformClicked(int type, org.jogamp.java3d.Transform3D transform)
    transformClicked
    void
    transformDoubleClicked(int type, org.jogamp.java3d.Transform3D transform)
    transformDoubleClicked
    void
    updateScene(int xpos, int ypos)
    Update the scene to manipulate any nodes.

    Methods inherited from class ffx.ui.behaviors.PickMouseBehavior Link icon

    initialize, processStimulus, setTolerance

    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

  • Constructor Details Link icon

    • PickRotateBehavior Link icon

      public PickRotateBehavior(org.jogamp.java3d.BranchGroup bg, org.jogamp.java3d.Canvas3D canvas, org.jogamp.java3d.Bounds bounds, org.jogamp.java3d.TransformGroup VPTG, int pickMode)
      Constructor for PickRotateBehavior.
      Parameters:
      bg - a BranchGroup object.
      canvas - a Canvas3D object.
      bounds - a Bounds object.
      VPTG - a TransformGroup object.
      pickMode - a int.
  • Method Details Link icon

    • getPickMode Link icon

      public int getPickMode()
      Return the pickMode component of this PickRotateBehavior.
      Returns:
      a int.
    • setPickMode Link icon

      public void setPickMode(int pickMode)
      Sets the pickMode component of this PickRotateBehavior to the value of the passed pickMode. @param pickMode the pickMode to be copied.
      Parameters:
      pickMode - a int.
    • setupCallback Link icon

      public void setupCallback(PickingCallback c)
      Register the class @param callback to be called each time the picked object moves.
      Parameters:
      c - a PickingCallback object.
    • transformChanged Link icon

      public void transformChanged(int type, org.jogamp.java3d.Transform3D transform)
      Callback method from MouseRotate This is used when the Picking callback is enabled. transformChanged
      Specified by:
      transformChanged in interface MouseBehaviorCallback
      Parameters:
      type - a int.
      transform - a Transform3D object.
    • transformClicked Link icon

      public void transformClicked(int type, org.jogamp.java3d.Transform3D transform)
      transformClicked
      Specified by:
      transformClicked in interface MouseBehaviorCallback
      Parameters:
      type - a int.
      transform - a Transform3D object.
    • transformDoubleClicked Link icon

      public void transformDoubleClicked(int type, org.jogamp.java3d.Transform3D transform)
      transformDoubleClicked
      Specified by:
      transformDoubleClicked in interface MouseBehaviorCallback
      Parameters:
      type - a int.
      transform - a Transform3D object.
    • updateScene Link icon

      public void updateScene(int xpos, int ypos)
      Update the scene to manipulate any nodes. This is not meant to be called by users. Behavior automatically calls this. You can call this only if you know what you are doing.
      Specified by:
      updateScene in class PickMouseBehavior
      Parameters:
      xpos - Current mouse X pos.
      ypos - Current mouse Y pos.