be.saltwater.jaqel.creature
Class KeyFrameAnimation

java.lang.Object
  extended bybe.saltwater.jaqel.creature.KeyFrameAnimation

public class KeyFrameAnimation
extends java.lang.Object

Collection of keyframes and the time in miliseconds it takes to play them.

See Also:
KeyFrameBehavior

Constructor Summary
KeyFrameAnimation(javax.media.j3d.GeometryArray[] geometry, int length)
           
 
Method Summary
 javax.media.j3d.GeometryArray[] getGeometryArrays()
          Returns the array of keyframes.
 int getLength()
          Returns the length of the animation in miliseconds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyFrameAnimation

public KeyFrameAnimation(javax.media.j3d.GeometryArray[] geometry,
                         int length)
Parameters:
geometry - An array of GeometryArray's that all have the same number of vertices. If this is not the case, an exception will be thrown by Morph when trying to play the animation with KeyFrameBehavior.
length - The length of the animation in miliseconds.
Method Detail

getGeometryArrays

public javax.media.j3d.GeometryArray[] getGeometryArrays()
Returns the array of keyframes.


getLength

public int getLength()
Returns the length of the animation in miliseconds.