|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.md5importer.model.anim.Frame
public class Frame
Frame defines the concrete implementation of a frame.
Frame should not be cloned directly. The cloning
process of a Frame should be initiated by the cloning
process of the parent* IMD5Animation.
This class is used internally by MD5Importer only.
| Field Summary | |
|---|---|
protected com.jme.math.Quaternion[] |
orientations
The array of Quaternion orientations. |
protected com.jme.math.Vector3f[] |
translations
The array of Vector3f translations. |
| Constructor Summary | |
|---|---|
|
Frame()
Constructor of Frame. |
|
Frame(int numJoints)
Constructor of Frame. |
protected |
Frame(com.jme.math.Vector3f[] translations,
com.jme.math.Quaternion[] orientations)
Constructor of Frame. |
| Method Summary | |
|---|---|
IFrame |
clone()
Clone this frame. |
java.lang.Class |
getClassTag()
|
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 |
read(com.jme.util.export.JMEImporter im)
|
void |
setTransform(int jointIndex,
int index,
float value)
Set the transform of this Frame. |
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.jme.math.Vector3f[] translations
Vector3f translations.
protected com.jme.math.Quaternion[] orientations
Quaternion orientations.
| Constructor Detail |
|---|
public Frame()
Frame.
public Frame(int numJoints)
Frame.
numJoints - The Integer number of joints.
protected Frame(com.jme.math.Vector3f[] translations,
com.jme.math.Quaternion[] orientations)
Frame.
translations - The array of Vector3f translations.orientations - The array of Quaternion orientations.| Method Detail |
|---|
public void setTransform(int jointIndex,
int index,
float value)
Frame.
setTransform in interface IFramejointIndex - The index of the Joint.index - The transform index number.value - The transform value to be set.public com.jme.math.Vector3f getTranslation(int jointIndex)
IFrameJoint with given index.
getTranslation in interface IFramejointIndex - The Joint index number.
Vector3f translation value.public com.jme.math.Quaternion getOrientation(int jointIndex)
IFrameJoint with given index.
getOrientation in interface IFramejointIndex - The Joint number.
Quaternion orientation value.
public float getTransformValue(int jointIndex,
int transIndex)
IFrame
getTransformValue in interface IFramejointIndex - The Integer joint index.transIndex - The Integer transform index.
Float transform value.public java.lang.Class getClassTag()
getClassTag in interface com.jme.util.export.Savable
public void write(com.jme.util.export.JMEExporter ex)
throws java.io.IOException
write in interface com.jme.util.export.Savablejava.io.IOException
public void read(com.jme.util.export.JMEImporter im)
throws java.io.IOException
read in interface com.jme.util.export.Savablejava.io.IOExceptionpublic IFrame clone()
IFrame
clone in interface IFrameclone in class java.lang.ObjectIFrame instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||