|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.md5importer.model.mesh.primitive.Weight
public class Weight
Weight defines the concrete implementation of a weight.
Weight should not be cloned directly. The cloning
process of a Weight should be initiated by the cloning
process of the parent IMesh.
This class is used internally by MD5Importer only.
| Constructor Summary | |
|---|---|
Weight()
Constructor of Weight. |
|
Weight(int index,
float value,
com.jme.math.Vector3f position)
Constructor of Weight. |
|
| Method Summary | |
|---|---|
IWeight |
clone(IJoint[] clonedJoints)
Clone this weight. |
java.lang.Class |
getClassTag()
|
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 |
read(com.jme.util.export.JMEImporter im)
|
void |
setJoint(IJoint joint)
Set the joint this weight affects. |
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Weight()
Weight.
public Weight(int index,
float value,
com.jme.math.Vector3f position)
Weight.
index - The Integer index value.value - The fixed Float weight value.position - The fixed Vector3f position vector.| Method Detail |
|---|
public void setJoint(IJoint joint)
IWeight
setJoint in interface IWeightjoint - The IJoint instance.public float getWeightValue()
IWeightWeight.
getWeightValue in interface IWeightpublic com.jme.math.Vector3f getPosition()
IWeightWeight.
getPosition in interface IWeightVector3f position of this Weight.public IJoint getJoint()
IWeightJoint this Weight affects.
getJoint in interface IWeightJoint.public int getIndex()
IWeight
getIndex in interface IWeightInteger index 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 IWeight clone(IJoint[] clonedJoints)
IWeight
clone in interface IWeightclonedJoints - The array of cloned IJoint.
IWeight instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||