net.jbeans.j3d.util.behavior.sensor
Class SensorBehavior

java.lang.Object
  extended byjavax.media.j3d.SceneGraphObject
      extended byjavax.media.j3d.Node
          extended byjavax.media.j3d.Leaf
              extended byjavax.media.j3d.Behavior
                  extended bynet.jbeans.j3d.util.behavior.sensor.SensorBehavior

public class SensorBehavior
extends javax.media.j3d.Behavior

SensorBehavior defines a Behavior object triggered by a Java3D sensor.

Version:
$Revision: 1.3 $
Author:
Masahiro Takatsuka (masa@jbeans.net)
See Also:
Behavior

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
SensorBehavior(javax.media.j3d.TransformGroup tg, javax.media.j3d.Sensor sensor)
          Constructs a new SensorBehavior object with the specified TransformGroup and Sensor.
 
Method Summary
 void initialize()
          Initialize this behavior.
 void processStimulus(java.util.Enumeration criteria)
          Process a stimulus meant for this behavior.
 
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

SensorBehavior

public SensorBehavior(javax.media.j3d.TransformGroup tg,
                      javax.media.j3d.Sensor sensor)
Constructs a new SensorBehavior object with the specified TransformGroup and Sensor.

Parameters:
tg - a TransformGroup object.
sensor - a Sensor object which triggers this behavior.
Method Detail

initialize

public void initialize()
Initialize this behavior.


processStimulus

public void processStimulus(java.util.Enumeration criteria)
Process a stimulus meant for this behavior. This method is invoked if the wakeup criteria are satisfied and the ViewPlatform's activation region intersect with the Behavior's scheduling region.

Parameters:
criteria - an enumeration of triggered wakeup criteria.


Copyright © 1995-2004 net.jbeans. All Rights Reserved.