com.md5importer.model.anim
Class BaseFrame

java.lang.Object
  extended by com.md5importer.model.anim.Frame
      extended by com.md5importer.model.anim.BaseFrame
All Implemented Interfaces:
com.jme.util.export.Savable, IFrame, java.io.Serializable

public class BaseFrame
extends Frame

BaseFrame defines the concrete implementation of a base frame that maintains the joint hierarchy of the animation.

BaseFrame should not be cloned directly. The cloning process of a BaseFrame should be initiated by the cloning process of the parent IMD5Animation.

This class is used internally by MD5Importer only.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.md5importer.model.anim.Frame
orientations, translations
 
Constructor Summary
BaseFrame()
          Constructor of BaseFrame.
BaseFrame(int numJoints, int[] hierarchy)
          Constructor of BaseFrame.
 
Method Summary
 int getParent(int index)
          Retrieve the parent index of the join with given index in the animation hierarchy.
 void read(com.jme.util.export.JMEImporter im)
           
 void write(com.jme.util.export.JMEExporter ex)
           
 
Methods inherited from class com.md5importer.model.anim.Frame
clone, getClassTag, getOrientation, getTransformValue, getTranslation, setTransform
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseFrame

public BaseFrame()
Constructor of BaseFrame.


BaseFrame

public BaseFrame(int numJoints,
                 int[] hierarchy)
Constructor of BaseFrame.

Parameters:
numJoints - The Integer number of joints.
hierarchy - The Integer array hierarchy.
Method Detail

getParent

public int getParent(int index)
Retrieve the parent index of the join with given index in the animation hierarchy.

Parameters:
index - The Integer joint index to check.
Returns:
The parent joint Integer index.

write

public void write(com.jme.util.export.JMEExporter ex)
           throws java.io.IOException
Specified by:
write in interface com.jme.util.export.Savable
Overrides:
write in class Frame
Throws:
java.io.IOException

read

public void read(com.jme.util.export.JMEImporter im)
          throws java.io.IOException
Specified by:
read in interface com.jme.util.export.Savable
Overrides:
read in class Frame
Throws:
java.io.IOException