com.model.md5.interfaces
Interface IMD5Node

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

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

IMD5Node defines the interface of a completed loaded MD5 model node. It can be maintained by other MD5 nodes as their dependent child, which will force the dependent child to follow the joints of its parent.


Method Summary
 void addController(IMD5Controller controller)
          Add a controller to control this node.
 void attachChild(IMD5Node node, int jointIndex)
          Attach the given MD5 node to the joint with given index.
 void attachChild(IMD5Node node, java.lang.String jointID)
          Attach the given MD5 node to the joint with given ID.
 void attachDependent(IMD5Node node)
          Attach the given MD5 node as a dependent child which shares the skeleton with this node.
 IMD5Node clone()
          Clone this MD5 node.
 void flagUpdate()
          Notify the IMD5Node that its skeleton has been modified.
 IJoint getJoint(int index)
          Retrieve the joint with given index.
 IJoint[] getJoints()
          Retrieve the skeleton of this MD5 node.
 IMesh getMesh(int index)
          Retrieve the mesh with given index.
 IMesh[] getMeshes()
          Retrieve all the meshes maintained by this node.
 java.lang.String getName()
          Retrieve the name of the node.
 IJoint getRootJoint()
          Retrieve the root joint.
 void initialize()
          Initialize the IMD5Node.
 boolean isDependent()
          Check if this MD5 node is a dependent child of some other node.
 void removeChild(IMD5Node node)
          Remove the given child from this node.
 void removeController(IMD5Controller controller)
          Remove the given controller from this node.
 void removeDependent(IMD5Node node)
          Remove the given dependent child.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

initialize

void initialize()
Initialize the IMD5Node.


addController

void addController(IMD5Controller controller)
Add a controller to control this node.

Parameters:
controller - The IMD5Controller instance.

attachChild

void attachChild(IMD5Node node,
                 java.lang.String jointID)
Attach the given MD5 node to the joint with given ID.

Parameters:
node - The IMD5Node needs to be attached.
jointID - The String ID of the joint.

attachChild

void attachChild(IMD5Node node,
                 int jointIndex)
Attach the given MD5 node to the joint with given index.

Parameters:
node - The IMD5Node needs to be attached.
jointIndex - The Integer index of the joint.

attachDependent

void attachDependent(IMD5Node node)
Attach the given MD5 node as a dependent child which shares the skeleton with this node.

Parameters:
node - The dependent IMD5Node needs to be attached.

removeController

void removeController(IMD5Controller controller)
Remove the given controller from this node.

Parameters:
controller - The IMD5Controller instance.

removeChild

void removeChild(IMD5Node node)
Remove the given child from this node.

Parameters:
node - The IMD5Node instance.

removeDependent

void removeDependent(IMD5Node node)
Remove the given dependent child.

Parameters:
node - The IMD5Node instance.

flagUpdate

void flagUpdate()
Notify the IMD5Node that its skeleton has been modified.


getName

java.lang.String getName()
Retrieve the name of the node.

Returns:
The String name.

getJoints

IJoint[] getJoints()
Retrieve the skeleton of this MD5 node.

Returns:
The array of IJoint.

getJoint

IJoint getJoint(int index)
Retrieve the joint with given index.

Parameters:
index - The Integer index number.
Returns:
The IJoint instance.

getRootJoint

IJoint getRootJoint()
Retrieve the root joint.

Returns:
The root IJoint instance.

getMesh

IMesh getMesh(int index)
Retrieve the mesh with given index.

Parameters:
index - The Integer index number.
Returns:
The IMesh instance.

getMeshes

IMesh[] getMeshes()
Retrieve all the meshes maintained by this node.

Returns:
The array of IMesh instances.

isDependent

boolean isDependent()
Check if this MD5 node is a dependent child of some other node.

Returns:
True if this MD5 node is dependent. False otherwise.

clone

IMD5Node clone()
Clone this MD5 node.

Returns:
The cloned IMD5Node instance.