Package ffx.potential

Class Renderer

java.lang.Object
org.jogamp.java3d.SceneGraphObject
org.jogamp.java3d.Node
org.jogamp.java3d.Leaf
org.jogamp.java3d.Behavior
ffx.potential.Renderer

public class Renderer extends org.jogamp.java3d.Behavior
The Renderer class attempts to maximize throughput of graphics operations on MolecularAssembly instances.
Since:
1.0
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
    Renderer(org.jogamp.java3d.Bounds b, JLabel s)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    arm(MSNode node, boolean t, boolean v, RendererCache.ViewModel vtype, boolean c, RendererCache.ColorModel ctype)
    arm
    void
    arm(ArrayList<MSNode> nodes, boolean t, boolean v, RendererCache.ViewModel vtype, boolean c, RendererCache.ColorModel ctype)
    This node arms UpdateBehavior with a graphics operation to carry out
    void
    boolean
    Check to see if a graphics operation is pending/executing
    boolean
    isCacheFull
    void
    processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> parm1)

    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

    • Renderer

      public Renderer(org.jogamp.java3d.Bounds b, JLabel s)
      Constructor
      Parameters:
      b - Bounds of this behavior
      s - JLabel for status
  • Method Details

    • arm

      public void arm(ArrayList<MSNode> nodes, boolean t, boolean v, RendererCache.ViewModel vtype, boolean c, RendererCache.ColorModel ctype)
      This node arms UpdateBehavior with a graphics operation to carry out
      Parameters:
      nodes - Nodes where the operation will be performed
      t - True for a change in atomic position
      v - True for a change in rendering method
      vtype - The rendering method to use
      c - True for a change in rendering color
      ctype - The coloring method to use
    • arm

      public void arm(MSNode node, boolean t, boolean v, RendererCache.ViewModel vtype, boolean c, RendererCache.ColorModel ctype)
      arm
      Parameters:
      node - a MSNode object.
      t - a boolean.
      v - a boolean.
      vtype - a RendererCache.ViewModel object.
      c - a boolean.
      ctype - a RendererCache.ColorModel object.
    • initialize

      public void initialize()

      Initialize this behavior to respond to postID messages

      Specified by:
      initialize in class org.jogamp.java3d.Behavior
    • isArmed

      public boolean isArmed()
      Check to see if a graphics operation is pending/executing
      Returns:
      Whether a node has been cued
    • isCacheFull

      public boolean isCacheFull()
      isCacheFull
      Returns:
      a boolean.
    • processStimulus

      public void processStimulus(Iterator<org.jogamp.java3d.WakeupCriterion> parm1)

      This method is called by the Java3D Behavior thread after the following sequence of events: 1.) A graphics operation is loaded using the "arm" method. 2.) The PostID call is processed by the Java3D Behavior Thread.

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