com.tirix.anim8or
Class Anim8orSequence

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Leaf
              extended by javax.media.j3d.Behavior
                  extended by com.tirix.anim8or.Anim8orSequence

public class Anim8orSequence
extends Behavior

A class representing an Anim8or sequence.

Version:
$Id: Anim8orSequence.java,v 1.3 2004/08/29 13:38:15 tirix Exp $

Change Log:
 $Log: Anim8orSequence.java,v $
 Revision 1.3  2004/08/29 13:38:15  tirix
 Corrected a java3D bug that made problems with Anim8or groups.
 Now, if an unexisting DOF is specified in the file, the loader just outputs a warning.

 Revision 1.2  2004/07/15 16:27:45  tirix
 Added a class header with CVS tags.

 Revision 1.1  2004/06/09 20:49:12  tirix
 First version.

 
Copyright (C) 2004 Thierry Arnoux.

Author:
Thierry Arnoux

Nested Class Summary
static class Anim8orSequence.AngleAnimation
          This represents the animation for a given angle.
static interface Anim8orSequence.Callback
           
 
Field Summary
protected  WakeupOnElapsedFrames frameWakeup
          The different criterion for the behavior to wakeup
protected static int POST_ID
          Behavior PostId used in this behavior
protected  WakeupOnBehaviorPost postWakeup
           
 
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
protected Anim8orSequence(String name, Anim8orFigure figure, int frameCount, Anim8orSequence.AngleAnimation[] joints)
           
 
Method Summary
 String getName()
           
 void initialize()
          Initializes the behavior.
 void processStimulus(Enumeration e)
           
 void setCallback(Anim8orSequence.Callback callback)
          defines the call back that will be done at the end of the sequence.
 void setTranslation(Vector3f translation)
          defines the translation that will occur together with the animation sequence.
 void start()
           
 String toString()
           
 
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, wait, wait, wait
 

Field Detail

POST_ID

protected static final int POST_ID
Behavior PostId used in this behavior

See Also:
Constant Field Values

frameWakeup

protected WakeupOnElapsedFrames frameWakeup
The different criterion for the behavior to wakeup


postWakeup

protected WakeupOnBehaviorPost postWakeup
Constructor Detail

Anim8orSequence

protected Anim8orSequence(String name,
                          Anim8orFigure figure,
                          int frameCount,
                          Anim8orSequence.AngleAnimation[] joints)
Method Detail

setTranslation

public void setTranslation(Vector3f translation)
defines the translation that will occur together with the animation sequence. (only a linear translation is possible)


setCallback

public void setCallback(Anim8orSequence.Callback callback)
defines the call back that will be done at the end of the sequence.


initialize

public void initialize()
Initializes the behavior. NOTE: Applications should not call this method. It is called by the Java 3D behavior scheduler.

Specified by:
initialize in class Behavior

start

public void start()

processStimulus

public void processStimulus(Enumeration e)
Specified by:
processStimulus in class Behavior

getName

public String getName()

toString

public String toString()
Overrides:
toString in class Object