Package ffx.ui

Class GraphicsPicking

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.GraphicsPicking

public class GraphicsPicking extends PickMouseBehavior
The GraphicsPicking class is used to make selections and measurements.
Author:
Michael J. Schnieders
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary Link icon

    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
    GraphicsPicking(org.jogamp.java3d.BranchGroup base, org.jogamp.java3d.Bounds bounds, GraphicsCanvas graphicsCanvas, MainPanel mainPanel)
    Constructor
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    Clear currently selected nodes
    boolean
    Getter for the field picking.
    void
    setPicking(boolean m)
    Setter for the field picking.
    void
    updateScene(int xpos, int ypos)
    Subclasses shall implement this update function.

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

    • GraphicsPicking Link icon

      public GraphicsPicking(org.jogamp.java3d.BranchGroup base, org.jogamp.java3d.Bounds bounds, GraphicsCanvas graphicsCanvas, MainPanel mainPanel)
      Constructor
      Parameters:
      base - Base of the Scenegraph
      bounds - Behavior bounds
      graphicsCanvas - Scene Canvas3D
      mainPanel - MainPanel
  • Method Details Link icon

    • clear Link icon

      public void clear()
      Clear currently selected nodes
    • getPicking Link icon

      public boolean getPicking()
      Getter for the field picking.
      Returns:
      a boolean.
    • setPicking Link icon

      public void setPicking(boolean m)
      Setter for the field picking.
      Parameters:
      m - a boolean.
    • updateScene Link icon

      public void updateScene(int xpos, int ypos)
      Subclasses shall implement this update function.

      Called by Java3D when an atom is picked

      Specified by:
      updateScene in class PickMouseBehavior
      Parameters:
      xpos - a int.
      ypos - a int.