Class JointData
java.lang.Object
com.ardor3d.extension.animation.skeletal.clip.TransformData
com.ardor3d.extension.animation.skeletal.clip.JointData
- All Implemented Interfaces:
Savable
Describes transform of a joint.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionblend
(TransformData blendTo, double blendWeight, TransformData store) Blend this transform with the given transform.int
void
read
(InputCapsule capsule) void
Copy the source's values into this transform data object.void
setJointIndex
(int jointIndex) void
write
(OutputCapsule capsule) Methods inherited from class com.ardor3d.extension.animation.skeletal.clip.TransformData
applyTo, applyTo, getClassTag, getRotation, getScale, getTranslation, set, setRotation, setRotation, setScale, setScale, setTranslation, setTranslation
-
Constructor Details
-
JointData
public JointData(int index) Construct a new, identity joint data object.- Parameters:
index
- the index
-
JointData
Construct a new joint data object, copying the value of the given source.- Parameters:
source
- our source to copy.- Throws:
NullPointerException
- if source is null.
-
JointData
public JointData()Construct a new, identity joint data object.
-
-
Method Details
-
set
Copy the source's values into this transform data object.- Parameters:
source
- our source to copy.- Throws:
NullPointerException
- if source is null.
-
getJointIndex
public int getJointIndex() -
setJointIndex
public void setJointIndex(int jointIndex) -
blend
Blend this transform with the given transform.- Overrides:
blend
in classTransformData
- Parameters:
blendTo
- The transform to blend toblendWeight
- The blend weightstore
- The transform store.- Returns:
- The blended transform.
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classTransformData
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classTransformData
- Throws:
IOException
-