Class Joint
java.lang.Object
com.ardor3d.extension.animation.skeletal.Joint
- All Implemented Interfaces:
Savable
Representation of a Joint in a Skeleton. Meant to be used within a specific Skeleton object.
-
Field Summary
Modifier and TypeFieldDescriptionprotected short
protected short
Index of our parent Joint, or NO_PARENT if we are the root.static final short
Root node ID -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionshort
getIndex()
getName()
short
static Joint
void
read
(InputCapsule capsule) void
setIndex
(short index) void
setInverseBindPose
(ReadOnlyTransform inverseBindPose) void
setParentIndex
(short parentIndex) Set the index of this joint's parent within the containing Skeleton's joint array.toString()
void
write
(OutputCapsule capsule)
-
Field Details
-
NO_PARENT
public static final short NO_PARENTRoot node ID- See Also:
-
_index
protected short _index -
_parentIndex
protected short _parentIndexIndex of our parent Joint, or NO_PARENT if we are the root.
-
-
Constructor Details
-
Joint
Construct a new Joint object using the given name.- Parameters:
name
- the name
-
Joint
protected Joint()
-
-
Method Details
-
getInverseBindPose
- Returns:
- the inverse of the joint space to model space transformation.
-
setInverseBindPose
-
getName
- Returns:
- the human-readable name of this joint.
-
setParentIndex
public void setParentIndex(short parentIndex) Set the index of this joint's parent within the containing Skeleton's joint array.- Parameters:
parentIndex
- the index, or NO_PARENT if this Joint is root (has no parent)
-
getParentIndex
public short getParentIndex() -
setIndex
public void setIndex(short index) -
getIndex
public short getIndex() -
toString
-
getClassTag
- Specified by:
getClassTag
in interfaceSavable
-
write
- Specified by:
write
in interfaceSavable
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Throws:
IOException
-
initSavable
-