|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.collada.datastructs.animation.Bone
public class Bone
A Bone (of a Skeleton)
| Field Summary | |
|---|---|
org.openmali.vecmath2.Matrix4f |
bindMatrix
The bind matrix |
org.openmali.vecmath2.Matrix4f |
invBindMatrix
The inverse bind matrix |
org.openmali.vecmath2.Quaternion4f |
relativeRotation
The rotation of this bone |
org.openmali.vecmath2.Tuple3f |
relativeScaling
The scaling of this bone, along the three axis : X, Y, and Z. |
java.util.ArrayList<KeyFrameQuat4f> |
rotKeyFrames
Temporal key frames for the bone. |
java.util.ArrayList<KeyFrameTuple3f> |
scaleKeyFrames
Temporal key frames for the bone. |
| Constructor Summary | |
|---|---|
Bone(java.lang.String sid,
java.lang.String name,
org.openmali.vecmath2.Matrix4f matrix,
org.openmali.vecmath2.Quaternion4f bindRotation)
Create a new Bone |
|
| Method Summary | |
|---|---|
void |
addChild(Bone bone)
Adds a child bone. |
org.openmali.vecmath2.Quaternion4f |
getAbsoluteRotation()
Get the absolute rotation of this bone. |
org.openmali.vecmath2.Tuple3f |
getAbsoluteScaling()
|
org.openmali.vecmath2.Matrix4f |
getAbsoluteTransformation()
|
org.openmali.vecmath2.Vector3f |
getAbsoluteTranslation()
Get the absolute translation of this bone. |
org.openmali.vecmath2.Quaternion4f |
getBindRotation()
|
Bone |
getChild(int i)
Gets a bone by index. |
float |
getLength()
|
java.lang.String |
getName()
|
java.lang.String |
getSourceId()
|
boolean |
hasKeyFrames()
|
int |
numChildren()
|
void |
removeChild(Bone bone)
Removes a child bone. |
int |
selectCurrentRotFrame(long currentTime)
Selects the current translation key frame, based on the current time |
int |
selectCurrentScaleFrame(long currentTime)
Selects the current scaling key frame, based on the current time |
void |
setBindRotation(org.openmali.vecmath2.Quaternion4f quat)
Sets the bindRotation. |
void |
setLength(float length)
Sets the length. |
void |
setNoRelativeMovement()
Completes the relativeTranslation and relativeRotation all with 0. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final org.openmali.vecmath2.Matrix4f bindMatrix
public final org.openmali.vecmath2.Matrix4f invBindMatrix
public final org.openmali.vecmath2.Quaternion4f relativeRotation
public final org.openmali.vecmath2.Tuple3f relativeScaling
public java.util.ArrayList<KeyFrameQuat4f> rotKeyFrames
public java.util.ArrayList<KeyFrameTuple3f> scaleKeyFrames
| Constructor Detail |
|---|
public Bone(java.lang.String sid,
java.lang.String name,
org.openmali.vecmath2.Matrix4f matrix,
org.openmali.vecmath2.Quaternion4f bindRotation)
sid - name - The name of this bonelength - The length of this bonebindRotation - The bind rotation of this bone| Method Detail |
|---|
public final java.lang.String getSourceId()
public final java.lang.String getName()
public void setLength(float length)
length - public final float getLength()
public void setBindRotation(org.openmali.vecmath2.Quaternion4f quat)
quat - public final org.openmali.vecmath2.Quaternion4f getBindRotation()
public final org.openmali.vecmath2.Vector3f getAbsoluteTranslation()
public final org.openmali.vecmath2.Quaternion4f getAbsoluteRotation()
public final org.openmali.vecmath2.Tuple3f getAbsoluteScaling()
public final org.openmali.vecmath2.Matrix4f getAbsoluteTransformation()
public final boolean hasKeyFrames()
public void setNoRelativeMovement()
public int selectCurrentRotFrame(long currentTime)
currentTime - beetween 0 and the end of the animation, in milliseconds
public int selectCurrentScaleFrame(long currentTime)
currentTime - beetween 0 and the end of the animation, in miliseconds
public void addChild(Bone bone)
bone - public void removeChild(Bone bone)
bone - public final int numChildren()
public final Bone getChild(int i)
i - The index of the bone you want to get.
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 | |||||||||