com.md5importer.interfaces.model.mesh
Interface IJoint

All Superinterfaces:
com.jme.util.export.Savable
All Known Implementing Classes:
Joint

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

IJoint defines the interface of a joint in a skeleton system. It maintains its own space position that is then translated into vertex positions for all vertices that are affected by this IJoint.


Method Summary
 IJoint clone()
          Clone this join.
 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 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.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

updateTransform

void updateTransform(com.jme.math.Vector3f translation,
                     com.jme.math.Quaternion orientation)
Update the translation and orientation of this joint.

Parameters:
translation - The new Vector3f translation value.
orientation - The new Quaternion orientation value.

processTransform

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.


processRelative

void processRelative()
Process the relative transforms of this joint.


setParent

void setParent(IJoint parent)
Set the parent joint of this one.

Parameters:
parent - The parent IJoint instance.

setSuperParent

void setSuperParent(IJoint superParent)
Set the super parent of this joint in the parent model node.

Parameters:
superParent - The super parent IJoint instance.

getTranslation

com.jme.math.Vector3f getTranslation()
Retrieve the translation of this joint read from MD5 file.

Returns:
The Vector3f translation read directly from MD5 file.

getOrientation

com.jme.math.Quaternion getOrientation()
Retrieve the orientation of this joint read from MD5 file.

Returns:
The Quaternion orientation read directly from MD5 file.

getTransform

com.jme.math.TransformMatrix getTransform()
Retrieve the relative TransformMatrix of this Joint.

Returns:
The relative TransformMatrix of this Joint.

getSuperParent

IJoint getSuperParent()
Retrieve the super parent of this joint.

Returns:
The super parent IJoint instance.

getParent

IJoint getParent()
Retrieve the parent joint.

Returns:
The parent IJoint instance.

getName

java.lang.String getName()
Retrieve the name ID of this joint.

Returns:
The String name ID.

getIndex

int getIndex()
Retrieve the index value.

Returns:
The Integer index.

clone

IJoint clone()
Clone this join.

Returns:
The cloned copy of this IJoint