com.md5importer.interfaces.model.mesh.primitive
Interface IWeight

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

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

IWeight defines the interface of a weight that affects a single joint in the mesh based a weight value and position.


Method Summary
 IWeight clone(IJoint[] clonedJoints)
          Clone this weight.
 int getIndex()
          Retrieve the index value of this weight.
 IJoint getJoint()
          Retrieve the index of the Joint this Weight affects.
 com.jme.math.Vector3f getPosition()
          Retrieve the fixed position of this Weight.
 float getWeightValue()
          Retrieve the fixed weight value of this Weight.
 void setJoint(IJoint joint)
          Set the joint this weight affects.
 
Methods inherited from interface com.jme.util.export.Savable
getClassTag, read, write
 

Method Detail

setJoint

void setJoint(IJoint joint)
Set the joint this weight affects.

Parameters:
joint - The IJoint instance.

getWeightValue

float getWeightValue()
Retrieve the fixed weight value of this Weight.

Returns:
The float weight value.

getPosition

com.jme.math.Vector3f getPosition()
Retrieve the fixed position of this Weight.

Returns:
The Vector3f position of this Weight.

getJoint

IJoint getJoint()
Retrieve the index of the Joint this Weight affects.

Returns:
The index number of the Joint.

getIndex

int getIndex()
Retrieve the index value of this weight.

Returns:
The Integer index value.

clone

IWeight clone(IJoint[] clonedJoints)
Clone this weight.

Parameters:
clonedJoints - The array of cloned IJoint.
Returns:
The cloned IWeight instance.