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

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • 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
    GraphicsPicking(org.jogamp.java3d.BranchGroup base, org.jogamp.java3d.Bounds bounds, GraphicsCanvas graphicsCanvas, MainPanel mainPanel)
    Constructor
  • Method Summary

    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

    initialize, processStimulus, setTolerance

    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

    • GraphicsPicking

      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

    • clear

      public void clear()
      Clear currently selected nodes
    • getPicking

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

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

      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.