|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.md5importer.model.mesh.Joint
public class Joint
Joint defines the concrete implementation of a joint
in the skeleton system of a model.
Joint cannot be cloned directly. The cloning process
of a Joint can only be initiated by the cloning
process of the parent IModelNode.
This class is used internally by MD5Importer only.
| Constructor Summary | |
|---|---|
Joint()
Constructor of Joint. |
|
Joint(int index,
java.lang.String name,
com.jme.math.Vector3f translation,
com.jme.math.Vector3f orientation)
Constructor of Joint. |
|
| Method Summary | |
|---|---|
IJoint |
clone()
Clone this join. |
java.lang.Class |
getClassTag()
|
int |
getIndex()
Retrieve the index value. |
java.lang.String |
getName()
Retrieve the name ID of this joint. |
com.jme.math.Quaternion |
getOrientation()
Retrieve the orientation of this joint read from MD5 file. |
IJoint |
getParent()
Retrieve the parent joint. |
IJoint |
getSuperParent()
Retrieve the super parent of this joint. |
com.jme.math.TransformMatrix |
getTransform()
Retrieve the relative TransformMatrix of this Joint. |
com.jme.math.Vector3f |
getTranslation()
Retrieve the translation of this joint read from MD5 file. |
void |
processRelative()
Process the relative transforms of this joint. |
void |
processTransform()
Process the translation and orientation of this joint This process has to be started from the bottom of skeleton tree up to the root joint. |
void |
read(com.jme.util.export.JMEImporter im)
|
void |
setParent(IJoint parent)
Set the parent joint of this one. |
void |
setSuperParent(IJoint superParent)
Set the super parent of this joint in the parent model node. |
void |
updateTransform(com.jme.math.Vector3f translation,
com.jme.math.Quaternion orientation)
Update the translation and orientation of this joint. |
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 |
| Constructor Detail |
|---|
public Joint()
Joint.
public Joint(int index,
java.lang.String name,
com.jme.math.Vector3f translation,
com.jme.math.Vector3f orientation)
Joint.
index - The Integer index.name - The String name ID.translation - The Vector3f translation value.orientation - The un-processed Vector3f orientation value.| Method Detail |
|---|
public void updateTransform(com.jme.math.Vector3f translation,
com.jme.math.Quaternion orientation)
IJoint
updateTransform in interface IJointtranslation - The new Vector3f translation value.orientation - The new Quaternion orientation value.public void processTransform()
IJoint
processTransform in interface IJointpublic void processRelative()
IJoint
processRelative in interface IJointpublic void setParent(IJoint parent)
IJoint
setParent in interface IJointparent - The parent IJoint instance.public void setSuperParent(IJoint superParent)
IJoint
setSuperParent in interface IJointsuperParent - The super parent IJoint instance.public com.jme.math.Vector3f getTranslation()
IJoint
getTranslation in interface IJointVector3f translation read directly from MD5 file.public com.jme.math.Quaternion getOrientation()
IJoint
getOrientation in interface IJointQuaternion orientation read directly from MD5 file.public com.jme.math.TransformMatrix getTransform()
IJointTransformMatrix of this Joint.
getTransform in interface IJointTransformMatrix of this Joint.public IJoint getSuperParent()
IJoint
getSuperParent in interface IJointIJoint instance.public IJoint getParent()
IJoint
getParent in interface IJointIJoint instance.public java.lang.String getName()
IJoint
getName in interface IJointString name ID.public int getIndex()
IJoint
getIndex in interface IJointInteger index.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 IJoint clone()
IJoint
clone in interface IJointclone in class java.lang.ObjectIJoint
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||