ffe.behaviors
Class UpdateBehavior
java.lang.Object
javax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Leaf
javax.media.j3d.Behavior
ffe.behaviors.UpdateBehavior
- public class UpdateBehavior
- extends javax.media.j3d.Behavior
The UpdateBehavior class allows updating the Java3D Universe between redraws.
| 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 |
|
|
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 |
UpdateBehavior
public UpdateBehavior(javax.media.j3d.Bounds b,
Graphics3D g)
- Constructor
- Parameters:
b - Bounds of this behaviorg - 3D Canvas
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 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(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