Package ffx.ui

Class GraphicsEvents

java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Leaf
org.jogamp.java3d.Behavior
ffx.ui.GraphicsEvents

public class GraphicsEvents extends org.jogamp.java3d.Behavior
The GraphicsEvents class listens for mouse events over the Java3D GraphicsCanvas, dispatching work to more specialized System Rotation and Translation Behaviors or to the GlobalOrbitBehavior.
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
    GraphicsEvents(MainPanel mainPanel, GraphicsCanvas graphicsCanvas, GraphicsAxis graphicsAxis, org.jogamp.java3d.utils.universe.SimpleUniverse simpleUniverse, org.jogamp.java3d.Bounds bounds, org.jogamp.java3d.BranchGroup root, org.jogamp.java3d.TransformGroup transformGroup)
    Constructor for GraphicsEvents.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    initialize
    void
    processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> criteria)
    Most of the logic for mouse interaction with the Scenegraph is here.
    void
    setGlobalCenter(double[] d)
    setGlobalCenter

    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

    • GraphicsEvents

      public GraphicsEvents(MainPanel mainPanel, GraphicsCanvas graphicsCanvas, GraphicsAxis graphicsAxis, org.jogamp.java3d.utils.universe.SimpleUniverse simpleUniverse, org.jogamp.java3d.Bounds bounds, org.jogamp.java3d.BranchGroup root, org.jogamp.java3d.TransformGroup transformGroup)
      Constructor for GraphicsEvents.
      Parameters:
      mainPanel - a MainPanel object.
      graphicsCanvas - a GraphicsCanvas object.
      graphicsAxis - a GraphicsAxis object.
      simpleUniverse - a SimpleUniverse object.
      bounds - a Bounds object.
      root - a BranchGroup object.
      transformGroup - a TransformGroup object.
  • Method Details

    • initialize

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

      public void processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> criteria)
      Most of the logic for mouse interaction with the Scenegraph is here.

      Specified by:
      processStimulus in class org.jogamp.java3d.Behavior
    • setGlobalCenter

      public void setGlobalCenter(double[] d)
      setGlobalCenter
      Parameters:
      d - an array of double.