|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalBone
public class CalBone
The bone class.
| Field Summary | |
|---|---|
protected float |
accumulatedWeight
|
protected float |
accumulatedWeightAbsolute
|
protected CalCoreBone |
coreBone
|
protected org.openmali.vecmath2.Quaternion4f |
rotation
|
protected org.openmali.vecmath2.Quaternion4f |
rotationAbsolute
|
protected org.openmali.vecmath2.Quaternion4f |
rotationBoneSpace
|
protected CalSkeleton |
skeleton
|
protected org.openmali.vecmath2.Matrix3f |
tmpMatrix
|
protected org.openmali.vecmath2.Matrix3f |
transformMatrix
|
protected org.openmali.vecmath2.Vector3f |
translation
|
protected org.openmali.vecmath2.Vector3f |
translationAbsolute
|
protected org.openmali.vecmath2.Vector3f |
translationBoneSpace
|
| Constructor Summary | |
|---|---|
CalBone(CalCoreBone coreBone)
Constructs a bone instance from a core bone. |
|
| Method Summary | |
|---|---|
void |
applyState(float weight,
org.openmali.vecmath2.Vector3f translation,
org.openmali.vecmath2.Quaternion4f rotation)
Applies a translation and rotation to the current state, bypassing the weighted accumulators This function interpolates the current state (relative translation and rotation) of the bone instance to another state of a given weight. |
void |
blendState(float weight,
org.openmali.vecmath2.Vector3f translation,
org.openmali.vecmath2.Quaternion4f rotation)
Interpolates the current state to another state. |
void |
calculateState()
Calculates the current state. |
void |
clearState()
Clears the current state. |
CalCoreBone |
getCoreBone()
Provides access to the core bone. |
org.openmali.vecmath2.Quaternion4f |
getRotation()
Returns the current rotation. |
org.openmali.vecmath2.Quaternion4f |
getRotationAbsolute()
Returns the current absolute rotation. |
org.openmali.vecmath2.Quaternion4f |
getRotationBoneSpace()
Returns the current bone space rotation. |
org.openmali.vecmath2.Matrix3f |
getTransformMatrix()
Returns the current bone space translation. |
org.openmali.vecmath2.Vector3f |
getTranslation()
Returns the current translation. |
org.openmali.vecmath2.Vector3f |
getTranslationAbsolute()
Returns the current absolute translation. |
org.openmali.vecmath2.Vector3f |
getTranslationBoneSpace()
Returns the current bone space translation. |
void |
lockState()
Locks the current state. |
void |
setCoreState()
Resets the bone to its core state This function changes the state of the bone to its default non-animated position and orientation. |
void |
setCoreStateRecursive()
Resets the bone and children to core states This function changes the state of the bone to its default non-animated position and orientation. |
void |
setRotation(org.openmali.vecmath2.Quaternion4f rotation)
Sets the current rotation. |
void |
setSkeleton(CalSkeleton skeleton)
Sets the skeleton. |
void |
setTranslation(org.openmali.vecmath2.Vector3f translation)
Sets the current translation. |
java.lang.String |
toString()
The string representation is the name of the core bone |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected CalCoreBone coreBone
protected CalSkeleton skeleton
protected float accumulatedWeight
protected float accumulatedWeightAbsolute
protected org.openmali.vecmath2.Vector3f translation
protected org.openmali.vecmath2.Quaternion4f rotation
protected org.openmali.vecmath2.Vector3f translationAbsolute
protected org.openmali.vecmath2.Quaternion4f rotationAbsolute
protected org.openmali.vecmath2.Vector3f translationBoneSpace
protected org.openmali.vecmath2.Quaternion4f rotationBoneSpace
protected org.openmali.vecmath2.Matrix3f transformMatrix
protected org.openmali.vecmath2.Matrix3f tmpMatrix
| Constructor Detail |
|---|
public CalBone(CalCoreBone coreBone)
| Method Detail |
|---|
public void setCoreState()
public void setCoreStateRecursive()
public void blendState(float weight,
org.openmali.vecmath2.Vector3f translation,
org.openmali.vecmath2.Quaternion4f rotation)
weight - The blending weight.translation - The relative translation to be interpolated to.rotation - The relative rotation to be interpolated to.
public void applyState(float weight,
org.openmali.vecmath2.Vector3f translation,
org.openmali.vecmath2.Quaternion4f rotation)
weight - The blending weight.translation - The relative translation to be interpolated to.rotation - The relative rotation to be interpolated to.public void lockState()
public void calculateState()
public void clearState()
public CalCoreBone getCoreBone()
public org.openmali.vecmath2.Quaternion4f getRotation()
public void setRotation(org.openmali.vecmath2.Quaternion4f rotation)
public org.openmali.vecmath2.Quaternion4f getRotationAbsolute()
public org.openmali.vecmath2.Quaternion4f getRotationBoneSpace()
public org.openmali.vecmath2.Vector3f getTranslation()
public void setTranslation(org.openmali.vecmath2.Vector3f translation)
public org.openmali.vecmath2.Vector3f getTranslationAbsolute()
public org.openmali.vecmath2.Vector3f getTranslationBoneSpace()
public org.openmali.vecmath2.Matrix3f getTransformMatrix()
public void setSkeleton(CalSkeleton skeleton)
skeleton - The skeleton to which the bone instance should be attached to.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||