|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalCoreBone
public class CalCoreBone
The core bone class.
| Field Summary | |
|---|---|
protected CalCoreSkeleton |
coreSkeleton
|
protected java.util.ArrayList<java.lang.Integer> |
listChildId
|
protected java.lang.String |
name
|
protected int |
parentId
|
protected org.openmali.vecmath2.Quaternion4f |
rotation
|
protected org.openmali.vecmath2.Quaternion4f |
rotationAbsolute
|
protected org.openmali.vecmath2.Quaternion4f |
rotationBoneSpace
|
protected org.openmali.vecmath2.Matrix3f |
stateTransform
|
protected org.openmali.vecmath2.Vector3f |
translation
|
protected org.openmali.vecmath2.Vector3f |
translationAbsolute
|
protected org.openmali.vecmath2.Vector3f |
translationBoneSpace
|
protected java.lang.Object |
userData
|
| Constructor Summary | |
|---|---|
CalCoreBone(java.lang.String name)
Constructs the core bone instance. |
|
| Method Summary | |
|---|---|
void |
addChildId(int childId)
Adds a child ID. |
void |
calculateState()
Calculates the current state. |
int |
getId()
Get the id for this core bone - needed to find the corresponding bone instance. |
java.util.ArrayList<java.lang.Integer> |
getListChildId()
Returns the child ID list. |
java.lang.String |
getName()
Returns the name. |
int |
getParentId()
Returns the parent ID. |
org.openmali.vecmath2.Quaternion4f |
getRotation()
Returns the rotation. |
org.openmali.vecmath2.Quaternion4f |
getRotationAbsolute()
Returns the absolute rotation. |
org.openmali.vecmath2.Quaternion4f |
getRotationBoneSpace()
Returns the bone space rotation. |
org.openmali.vecmath2.Vector3f |
getTranslation()
Returns the translation. |
org.openmali.vecmath2.Vector3f |
getTranslationAbsolute()
Returns the absolute translation. |
org.openmali.vecmath2.Vector3f |
getTranslationBoneSpace()
Returns the bone space translation. |
java.lang.Object |
getUserData()
Provides access to the user data. |
static void |
mul(org.openmali.vecmath2.Quaternion4f q,
org.openmali.vecmath2.Vector3f v)
|
void |
setCoreSkeleton(CalCoreSkeleton coreSkeleton)
Sets the core skeleton. |
void |
setName(java.lang.String name)
|
void |
setParentId(int parentId)
Sets the parent ID. |
void |
setRotation(org.openmali.vecmath2.Quaternion4f rotation)
Sets the rotation. |
void |
setRotationBoneSpace(org.openmali.vecmath2.Quaternion4f rotation)
Sets the bone space rotation. |
void |
setTranslation(org.openmali.vecmath2.Vector3f translation)
Sets the translation. |
void |
setTranslationBoneSpace(org.openmali.vecmath2.Vector3f translation)
Sets the bone space translation. |
void |
setUserData(java.lang.Object userData)
Stores user data. |
java.lang.String |
toString()
|
static void |
transform(org.openmali.vecmath2.Vector3f v,
org.openmali.vecmath2.Quaternion4f q)
|
static void |
transformInv(org.openmali.vecmath2.Vector3f v,
org.openmali.vecmath2.Quaternion4f q)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected CalCoreSkeleton coreSkeleton
protected int parentId
protected java.util.ArrayList<java.lang.Integer> listChildId
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 stateTransform
protected java.lang.Object userData
| Constructor Detail |
|---|
public CalCoreBone(java.lang.String name)
| Method Detail |
|---|
public void addChildId(int childId)
childId - The ID of the core bone ID that shoud be added to the child ID
list.public void calculateState()
public static void transform(org.openmali.vecmath2.Vector3f v,
org.openmali.vecmath2.Quaternion4f q)
public static void transformInv(org.openmali.vecmath2.Vector3f v,
org.openmali.vecmath2.Quaternion4f q)
public static void mul(org.openmali.vecmath2.Quaternion4f q,
org.openmali.vecmath2.Vector3f v)
public java.util.ArrayList<java.lang.Integer> getListChildId()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Objectpublic int getId()
public int getParentId()
public org.openmali.vecmath2.Quaternion4f getRotation()
public org.openmali.vecmath2.Quaternion4f getRotationAbsolute()
public org.openmali.vecmath2.Quaternion4f getRotationBoneSpace()
public org.openmali.vecmath2.Vector3f getTranslation()
public org.openmali.vecmath2.Vector3f getTranslationAbsolute()
public org.openmali.vecmath2.Vector3f getTranslationBoneSpace()
public java.lang.Object getUserData()
public void setCoreSkeleton(CalCoreSkeleton coreSkeleton)
coreSkeleton - The core skeleton to which the core bone instance should be
attached to.public void setParentId(int parentId)
parentId - The ID of the parent that should be set.public void setRotation(org.openmali.vecmath2.Quaternion4f rotation)
rotation - The relative rotation to the parent as quaternion.public void setRotationBoneSpace(org.openmali.vecmath2.Quaternion4f rotation)
rotation - The rotation that brings a point into bone space.public void setTranslation(org.openmali.vecmath2.Vector3f translation)
translation - The relative translation to the parent as vector.public void setTranslationBoneSpace(org.openmali.vecmath2.Vector3f translation)
translation - The translation that brings a point into bone space.public void setUserData(java.lang.Object userData)
userData - The user data that should be stored.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||