j3d.org Code

org.j3d.renderer.java3d.overlay
Class UpdateControlBehavior

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended byorg.j3d.renderer.java3d.overlay.UpdateControlBehavior
All Implemented Interfaces:
UpdateManager

public class UpdateControlBehavior
extends javax.media.j3d.Behavior
implements UpdateManager

An implementation of an update manager that uses the Java3D behaviour system.

Version:
$Revision: 1.1 $
Author:
Will Holcomb

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
 
Constructor Summary
UpdateControlBehavior()
          Create a new behavior that manages the update of a single entity
 
Method Summary
 void initialize()
          Initialize the behavior to start working now.
 boolean isUpdating()
          Check to see if the manager is making updates right now.
 void processStimulus(java.util.Enumeration conditions)
          Process the behavior that has been woken up by the given set of conditions.
 void setUpdating(boolean updating)
          Instruct the system to start or stop the update process.
 void updateRequested(UpdatableEntity ue)
          Request that the manager update this item.
 
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

UpdateControlBehavior

public UpdateControlBehavior()
Create a new behavior that manages the update of a single entity

Method Detail

isUpdating

public boolean isUpdating()
Check to see if the manager is making updates right now.

Specified by:
isUpdating in interface UpdateManager
Returns:
true if the update process is currently happening

setUpdating

public void setUpdating(boolean updating)
Instruct the system to start or stop the update process. This is used to control the whole threaded update system rather than interact with a single update request.

Specified by:
setUpdating in interface UpdateManager
Parameters:
updating - true to set the update to happen, false to stop

updateRequested

public void updateRequested(UpdatableEntity ue)
Request that the manager update this item. This will be scheduled to happen as soon as possible, but won't necessarily happen immediately.

Specified by:
updateRequested in interface UpdateManager
Parameters:
ue - The entity to be updated

initialize

public void initialize()
Initialize the behavior to start working now. Sets up the initial wakeup condition.


processStimulus

public void processStimulus(java.util.Enumeration conditions)
Process the behavior that has been woken up by the given set of conditions.

Parameters:
conditions - The list of conditions satisfied

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org