|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalSkeleton
public class CalSkeleton
An instance of a core skeleton with its own positions for the bones. The Cal3d structure is very open but it is my intention to close this off and move much of the data into native storage so an optimised mechanism can do the bone transforms - either using the vector co-pro or on the graphics hardware with a vertex program. In the meantime avoid manipulating CalBones directly.
| Field Summary | |
|---|---|
protected CalCoreSkeleton |
coreSkeleton
|
protected CalBone[] |
vectorBone
|
| Constructor Summary | |
|---|---|
CalSkeleton(CalCoreSkeleton coreSkeleton)
Constructs the skeleton instance based on a core skeleton. |
|
| Method Summary | |
|---|---|
void |
calculateState()
Calculates the state of the skeleton instance. |
void |
clearState()
Clears the state of the skeleton instance. |
CalBone |
getBone(int boneId)
Provides access to a bone. |
org.openmali.vecmath2.Quaternion4f |
getBoneRotation(CalCoreBone coreBone)
Gets the rotation needed to go from the skeleton origin to the bone end. |
CalBone[] |
getBones()
|
org.openmali.vecmath2.Vector3f |
getBoneTranslation(CalCoreBone coreBone)
Gets the translation needed to go from the skeleton origin to the bone end. |
CalCoreSkeleton |
getCoreSkeleton()
Provides access to the core skeleton. |
void |
lockState()
Locks the state of the skeleton instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CalCoreSkeleton coreSkeleton
protected CalBone[] vectorBone
| Constructor Detail |
|---|
public CalSkeleton(CalCoreSkeleton coreSkeleton)
coreSkeleton - the core skeleton on which this skeleton
instance should be based on.| Method Detail |
|---|
public void calculateState()
public void clearState()
public CalBone getBone(int boneId)
boneId - The ID of the bone that should be returned.
public org.openmali.vecmath2.Vector3f getBoneTranslation(CalCoreBone coreBone)
public org.openmali.vecmath2.Quaternion4f getBoneRotation(CalCoreBone coreBone)
public CalCoreSkeleton getCoreSkeleton()
public CalBone[] getBones()
public void lockState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||