com.md5importer.interfaces.model.anim
Interface IFrame

All Superinterfaces:
com.jme.util.export.Savable
All Known Implementing Classes:
BaseFrame, Frame

public interface IFrame
extends com.jme.util.export.Savable

IFrame defines the interface of a single frame of a skeletal animation. It maintains the translation and orientation of the entire skeleton at a particular frame in the animation.


Method Summary
 IFrame clone()
          Clone this frame.
 com.jme.math.Quaternion getOrientation(int jointIndex)
          Retrieve the orientation of the Joint with given index.
 float getTransformValue(int jointIndex, int transIndex)
          Retrieve the transform value with given indices.
 com.jme.math.Vector3f getTranslation(int jointIndex)
          Retrieve the translation of the Joint with given index.
 void setTransform(int jointIndex, int index, float value)
          Set the transform of this frame.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

setTransform

void setTransform(int jointIndex,
                  int index,
                  float value)
Set the transform of this frame.

Parameters:
jointIndex - The Integer index of the joint.
index - The Integer transform index number.
value - The Float transform value to be set.

getTranslation

com.jme.math.Vector3f getTranslation(int jointIndex)
Retrieve the translation of the Joint with given index.

Parameters:
jointIndex - The Joint index number.
Returns:
The Vector3f translation value.

getOrientation

com.jme.math.Quaternion getOrientation(int jointIndex)
Retrieve the orientation of the Joint with given index.

Parameters:
jointIndex - The Joint number.
Returns:
The Quaternion orientation value.

getTransformValue

float getTransformValue(int jointIndex,
                        int transIndex)
Retrieve the transform value with given indices.

Parameters:
jointIndex - The Integer joint index.
transIndex - The Integer transform index.
Returns:
The Float transform value.

clone

IFrame clone()
Clone this frame.

Returns:
The cloned IFrame instance.