org.xith3d.loaders.models.animations
Class PrecomputedAnimationKeyFrameController

java.lang.Object
  extended by org.xith3d.loaders.models.animations.KeyFrameController
      extended by org.xith3d.loaders.models.animations.PrecomputedAnimationKeyFrameController

public class PrecomputedAnimationKeyFrameController
extends KeyFrameController

Insert type comment here.


Constructor Summary
PrecomputedAnimationKeyFrameController(PrecomputedAnimationKeyFrame[] frames, Shape3D shape)
           
 
Method Summary
protected  boolean checkUpdateConditions(boolean forced, float absAnimTime, int frame, float animDuration)
          TODO: This won't be necessary anymore, when we're finally using skeleton interpolation!
 PrecomputedAnimationKeyFrame getFrame(int index)
           
 Shape3D getTarget()
          
 void reset()
          TODO: This won't be necessary anymore, when we're finally using skeleton interpolation!
 PrecomputedAnimationKeyFrameController sharedCopy(java.util.Map<java.lang.String,org.jagatoo.datatypes.NamedObject> namedObjects)
          
protected  void updateTarget(float absAnimTime, int baseFrame, int nextFrame, float alpha, ModelAnimation animation)
          
 
Methods inherited from class org.xith3d.loaders.models.animations.KeyFrameController
getAnimationType, getKeyFrame, getKeyFrames, getNumFrames, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrecomputedAnimationKeyFrameController

public PrecomputedAnimationKeyFrameController(PrecomputedAnimationKeyFrame[] frames,
                                              Shape3D shape)
Method Detail

getFrame

public final PrecomputedAnimationKeyFrame getFrame(int index)

getTarget

public final Shape3D getTarget()

Specified by:
getTarget in class KeyFrameController

reset

public void reset()
TODO: This won't be necessary anymore, when we're finally using skeleton interpolation!

Overrides:
reset in class KeyFrameController

checkUpdateConditions

protected boolean checkUpdateConditions(boolean forced,
                                        float absAnimTime,
                                        int frame,
                                        float animDuration)
TODO: This won't be necessary anymore, when we're finally using skeleton interpolation!

Overrides:
checkUpdateConditions in class KeyFrameController

updateTarget

protected void updateTarget(float absAnimTime,
                            int baseFrame,
                            int nextFrame,
                            float alpha,
                            ModelAnimation animation)

Specified by:
updateTarget in class KeyFrameController

sharedCopy

public PrecomputedAnimationKeyFrameController sharedCopy(java.util.Map<java.lang.String,org.jagatoo.datatypes.NamedObject> namedObjects)

Specified by:
sharedCopy in class KeyFrameController