org.selman.java3d.book.behaviortest
Class ExplodeBehavior

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Leaf
                    |
                    +--javax.media.j3d.Behavior
                          |
                          +--org.selman.java3d.book.behaviortest.ExplodeBehavior

public class ExplodeBehavior
extends javax.media.j3d.Behavior


Field Summary
protected  javax.media.j3d.Appearance m_Appearance
           
protected  float[] m_CoordinateArray
           
protected  javax.media.j3d.WakeupCondition m_FrameWakeupCondition
           
protected  javax.media.j3d.GeometryArray m_GeometryArray
           
protected  javax.media.j3d.WakeupCondition m_InitialWakeupCondition
           
protected  int m_nElapsedTime
           
protected  int m_nFrameNumber
           
protected  int m_nNumFrames
           
protected  float[] m_OriginalCoordinateArray
           
protected  javax.media.j3d.Shape3D m_Shape3D
           
protected  javax.media.j3d.TransparencyAttributes m_TransparencyAttributes
           
protected  javax.vecmath.Vector3f m_Vector
           
 
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
ExplodeBehavior(javax.media.j3d.Shape3D shape3D, int nElapsedTime, int nNumFrames, org.selman.java3d.book.behaviortest.ExplosionListener listener)
           
 
Method Summary
 void initialize()
           
 void processStimulus(java.util.Enumeration criteria)
           
 javax.media.j3d.WakeupCondition restart(javax.media.j3d.Shape3D shape3D, int nElapsedTime, int nNumFrames, org.selman.java3d.book.behaviortest.ExplosionListener listener)
           
 
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
 

Field Detail

m_InitialWakeupCondition

protected javax.media.j3d.WakeupCondition m_InitialWakeupCondition

m_FrameWakeupCondition

protected javax.media.j3d.WakeupCondition m_FrameWakeupCondition

m_Shape3D

protected javax.media.j3d.Shape3D m_Shape3D

m_GeometryArray

protected javax.media.j3d.GeometryArray m_GeometryArray

m_CoordinateArray

protected float[] m_CoordinateArray

m_OriginalCoordinateArray

protected float[] m_OriginalCoordinateArray

m_Appearance

protected javax.media.j3d.Appearance m_Appearance

m_TransparencyAttributes

protected javax.media.j3d.TransparencyAttributes m_TransparencyAttributes

m_nElapsedTime

protected int m_nElapsedTime

m_nNumFrames

protected int m_nNumFrames

m_nFrameNumber

protected int m_nFrameNumber

m_Vector

protected javax.vecmath.Vector3f m_Vector
Constructor Detail

ExplodeBehavior

public ExplodeBehavior(javax.media.j3d.Shape3D shape3D,
                       int nElapsedTime,
                       int nNumFrames,
                       org.selman.java3d.book.behaviortest.ExplosionListener listener)
Method Detail

restart

public javax.media.j3d.WakeupCondition restart(javax.media.j3d.Shape3D shape3D,
                                               int nElapsedTime,
                                               int nNumFrames,
                                               org.selman.java3d.book.behaviortest.ExplosionListener listener)

initialize

public void initialize()
Specified by:
initialize in class javax.media.j3d.Behavior

processStimulus

public void processStimulus(java.util.Enumeration criteria)
Specified by:
processStimulus in class javax.media.j3d.Behavior