org.xith3d.loaders.models.animations
Class ModelAnimation

java.lang.Object
  extended by org.xith3d.loaders.models.animations.ModelAnimation

public class ModelAnimation
extends java.lang.Object

This is an abstraction for animations of loaded Models.


Constructor Summary
ModelAnimation(java.lang.String name, int numFrames, float fps, KeyFrameController[] controllers)
           
ModelAnimation(java.lang.String name, int numFrames, float fps, KeyFrameController[] controllers, java.lang.Object animPrototype)
          Deprecated. 
 
Method Summary
 void attachAnimation(ModelAnimation anim)
           
 void detachAnimation(ModelAnimation anim)
           
protected  ModelAnimation[] getAttachedAnimations()
           
 KeyFrameController[] getControllers()
           
 float getDuration()
           
 float getFPS()
           
 float getFrameDuration()
           
 Model getModel()
           
 org.openmali.vecmath2.Matrix4f[] getMountTransformFrame(int index)
           
 org.openmali.vecmath2.Matrix4f[][] getMountTransformFrames()
           
 java.lang.String getName()
           
 int getNumFrames()
           
 java.lang.Object getPrototype()
          Deprecated. 
 ModelAnimation getSharedCopy(java.util.Map<java.lang.String,org.jagatoo.datatypes.NamedObject> namedObjects)
           
 void reset()
           
 void setFPS(float fps)
           
 void setMountTransformFrames(org.openmali.vecmath2.Matrix4f[][] mountTransformFrames)
           
 java.lang.String toString()
          
 boolean update(boolean forced, float absAnimTime, TransformGroup[] mountTransforms)
           
protected  void updateAttachedAnimations(boolean forced, float absAnimTime, int baseFrame, int nextFrame, float alpha)
           
protected  void updateMountTransforms(int baseFrame, int nextFrame, float alpha, TransformGroup[] mountTransforms)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModelAnimation

public ModelAnimation(java.lang.String name,
                      int numFrames,
                      float fps,
                      KeyFrameController[] controllers)

ModelAnimation

@Deprecated
public ModelAnimation(java.lang.String name,
                                 int numFrames,
                                 float fps,
                                 KeyFrameController[] controllers,
                                 java.lang.Object animPrototype)
Deprecated. 

Method Detail

getModel

public final Model getModel()

getControllers

public final KeyFrameController[] getControllers()

setMountTransformFrames

public void setMountTransformFrames(org.openmali.vecmath2.Matrix4f[][] mountTransformFrames)

getMountTransformFrames

public final org.openmali.vecmath2.Matrix4f[][] getMountTransformFrames()

getMountTransformFrame

public final org.openmali.vecmath2.Matrix4f[] getMountTransformFrame(int index)

getPrototype

@Deprecated
public java.lang.Object getPrototype()
Deprecated. 


getName

public final java.lang.String getName()

getNumFrames

public final int getNumFrames()

setFPS

public void setFPS(float fps)

getFPS

public final float getFPS()

getFrameDuration

public final float getFrameDuration()

getDuration

public final float getDuration()

attachAnimation

public void attachAnimation(ModelAnimation anim)

detachAnimation

public void detachAnimation(ModelAnimation anim)

getAttachedAnimations

protected ModelAnimation[] getAttachedAnimations()

reset

public void reset()

updateMountTransforms

protected void updateMountTransforms(int baseFrame,
                                     int nextFrame,
                                     float alpha,
                                     TransformGroup[] mountTransforms)

updateAttachedAnimations

protected void updateAttachedAnimations(boolean forced,
                                        float absAnimTime,
                                        int baseFrame,
                                        int nextFrame,
                                        float alpha)
Parameters:
forced -
absAnimTime -
baseFrame -
nextFrame -
alpha -

update

public boolean update(boolean forced,
                      float absAnimTime,
                      TransformGroup[] mountTransforms)

getSharedCopy

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object