org.jagatoo.loaders.models.collada
Class COLLADAAction

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.COLLADAAction

public class COLLADAAction
extends java.lang.Object

A COLLADA "Action", or "Animation" or "Animation clip" or "Animation strip", whatever you call it : it's a "piece of movement" you can play on your model.


Field Summary
 java.util.HashMap<Bone,java.util.ArrayList<KeyFrameQuat4f>> rotKeyFrames
          Rotation key frames, per bone.
 java.util.HashMap<Bone,java.util.ArrayList<KeyFrameTuple3f>> scaleKeyFrames
          Scale key frames, per bone.
 java.util.ArrayList<KeyFrameTuple3f> transKeyFrames
          Translation key frames : if any, define the movement of the Skeleton itself (e.g. moves the whole model)
 
Constructor Summary
COLLADAAction(java.lang.String id)
          Creates a new COLLADAAction.
 
Method Summary
 java.lang.String getId()
           
 Skeleton getSkeleton()
           
 void prepareBones()
          Loops through each bone of the skeleton and completes their temp key frames arrays.
 void setSkeleton(Skeleton skeleton)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transKeyFrames

public final java.util.ArrayList<KeyFrameTuple3f> transKeyFrames
Translation key frames : if any, define the movement of the Skeleton itself (e.g. moves the whole model)


rotKeyFrames

public final java.util.HashMap<Bone,java.util.ArrayList<KeyFrameQuat4f>> rotKeyFrames
Rotation key frames, per bone.


scaleKeyFrames

public final java.util.HashMap<Bone,java.util.ArrayList<KeyFrameTuple3f>> scaleKeyFrames
Scale key frames, per bone.

Constructor Detail

COLLADAAction

public COLLADAAction(java.lang.String id)
Creates a new COLLADAAction.

Parameters:
id - the id of this COLLADA Action
Method Detail

getId

public java.lang.String getId()
Returns:
the ID String of this COLLADA Action.

setSkeleton

public void setSkeleton(Skeleton skeleton)
Parameters:
skeleton - the skeleton to set

getSkeleton

public Skeleton getSkeleton()
Returns:
the skeleton

prepareBones

public void prepareBones()
Loops through each bone of the skeleton and completes their temp key frames arrays.