ffe.behaviors
Class UpdateBehavior

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended byffe.behaviors.UpdateBehavior

public class UpdateBehavior
extends javax.media.j3d.Behavior

The UpdateBehavior class allows updating the Java3D Universe between redraws.


Field Summary
 
Fields inherited from class javax.media.j3d.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_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Fields inherited from class javax.media.j3d.SceneGraphObject
 
Constructor Summary
UpdateBehavior(javax.media.j3d.Bounds b, Graphics3D g)
          Constructor
 
Method Summary
 void arm(java.util.ArrayList nodes, boolean t, boolean v, int vtype, boolean c, int ctype)
          This node arms UpdateBehavior with a graphics operation to carry out
 void arm(FNode node, boolean t, boolean v, int vtype, boolean c, int ctype)
           
 boolean cacheFull()
           
 void initialize()
          Initialize this behavior to respond to postID messages
 boolean isArmed()
          Check to see if a graphics operation is pending/executing
 void processStimulus(java.util.Enumeration parm1)
          This method is called by Java3D after a graphics operation is loaded in the arm and postID is called
 
Methods inherited from class javax.media.j3d.Behavior
getEnable, getNumSchedulingIntervals, getSchedulingBoundingLeaf, getSchedulingBounds, getSchedulingInterval, getView, getWakeupCondition, postId, setEnable, setSchedulingBoundingLeaf, setSchedulingBounds, setSchedulingInterval, updateNodeReferences, wakeupOn
 
Methods inherited from class javax.media.j3d.Node
cloneNode, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateBehavior

public UpdateBehavior(javax.media.j3d.Bounds b,
                      Graphics3D g)
Constructor

Parameters:
b - Bounds of this behavior
g - 3D Canvas
Method Detail

processStimulus

public void processStimulus(java.util.Enumeration parm1)
This method is called by Java3D after a graphics operation is loaded in the arm and postID is called

Parameters:
parm1 -

arm

public void arm(java.util.ArrayList nodes,
                boolean t,
                boolean v,
                int vtype,
                boolean c,
                int ctype)
This node arms UpdateBehavior with a graphics operation to carry out

Parameters:
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(FNode node,
                boolean t,
                boolean v,
                int vtype,
                boolean c,
                int ctype)

isArmed

public boolean isArmed()
Check to see if a graphics operation is pending/executing

Returns:
Whether a node has been cued

cacheFull

public boolean cacheFull()

initialize

public void initialize()
Initialize this behavior to respond to postID messages