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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
arm
(MSNode node, boolean t, boolean v, RendererCache.ViewModel vtype, boolean c, RendererCache.ColorModel ctype) armvoid
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 outvoid
boolean
isArmed()
Check to see if a graphics operation is pending/executingboolean
isCacheFullvoid
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
-
Constructor Details
-
Renderer
Constructor- Parameters:
b
- Bounds of this behaviors
- 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 performedt
- True for a change in atomic positionv
- True for a change in rendering methodvtype
- The rendering method to usec
- True for a change in rendering colorctype
- 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
- aMSNode
object.t
- a boolean.v
- a boolean.vtype
- aRendererCache.ViewModel
object.c
- a boolean.ctype
- aRendererCache.ColorModel
object.
-
initialize
public void initialize()Initialize this behavior to respond to postID messages
- Specified by:
initialize
in classorg.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
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 classorg.jogamp.java3d.Behavior
-