|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.model.ogrexml.anim.Bone
public final class Bone
Field Summary | |
---|---|
(package private) Node |
attachNode
The attachment node. |
(package private) java.util.ArrayList<Bone> |
children
|
(package private) java.lang.String |
name
|
(package private) Bone |
parent
|
(package private) boolean |
userControl
If enabled, user can control bone transform with setUserTransforms. |
Constructor Summary | |
---|---|
Bone()
Used for binary loading as a Savable; the object must be constructed, then the parameters usually present in the constructor for this class are restored from the file the object was saved to. |
|
Bone(Bone source)
Copy constructor. |
|
Bone(java.lang.String name)
Creates a new bone |
Method Summary | |
---|---|
(package private) void |
addChild(Bone bone)
|
Node |
getAttachmentsNode()
Returns the attachment node. |
java.lang.Class |
getClassTag()
|
(package private) void |
getOffsetTransform(Matrix4f m)
Stores the skinning transform in the specified Matrix4f. |
void |
read(JMEImporter im)
|
(package private) void |
reset()
Reset the bone and it's children to bind pose. |
(package private) void |
setAnimTransforms(Vector3f translation,
Quaternion rotation)
|
(package private) void |
setAnimTransforms(Vector3f translation,
Quaternion rotation,
Vector3f scale)
Sets the local animation transform of this bone. |
(package private) void |
setBindingPose()
Saves the current bone state as it's binding pose, including it's children. |
(package private) void |
setBindTransforms(Vector3f translation,
Quaternion rotation)
|
(package private) void |
setBindTransforms(Vector3f translation,
Quaternion rotation,
Vector3f scale)
Sets local bind transform for bone. |
void |
setUserControl(boolean enable)
If enabled, user can control bone transform with setUserTransforms. |
void |
setUserTransforms(Vector3f translation,
Quaternion rotation,
Vector3f scale)
Set user transform. |
(package private) void |
update()
Updates world transforms for this bone and it's children. |
(package private) void |
updateWorldVectors()
Updates the world transforms for this bone, and, possibly the attach node if not null. |
void |
write(JMEExporter ex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
java.lang.String name
Bone parent
final java.util.ArrayList<Bone> children
boolean userControl
Node attachNode
Constructor Detail |
---|
Bone(java.lang.String name)
name
- Name to give to this boneBone(Bone source)
source
- public Bone()
Method Detail |
---|
public void setUserControl(boolean enable)
void addChild(Bone bone)
void updateWorldVectors()
void update()
void setBindingPose()
void reset()
void getOffsetTransform(Matrix4f m)
m
- public void setUserTransforms(Vector3f translation, Quaternion rotation, Vector3f scale)
setUserControl
public Node getAttachmentsNode()
void setAnimTransforms(Vector3f translation, Quaternion rotation, Vector3f scale)
void setBindTransforms(Vector3f translation, Quaternion rotation, Vector3f scale)
void setAnimTransforms(Vector3f translation, Quaternion rotation)
void setBindTransforms(Vector3f translation, Quaternion rotation)
public java.lang.Class getClassTag()
getClassTag
in interface Savable
public void read(JMEImporter im) throws java.io.IOException
read
in interface Savable
java.io.IOException
public void write(JMEExporter ex) throws java.io.IOException
write
in interface Savable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |