com.jmex.model.ogrexml.anim
Class Skeleton

java.lang.Object
  extended by com.jmex.model.ogrexml.anim.Skeleton
All Implemented Interfaces:
Savable

public final class Skeleton
extends java.lang.Object
implements Savable

A skeleton is a hierarchy of bones. Skeleton updates the world transforms to reflect the current local animated matrixes.


Constructor Summary
Skeleton()
          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.
Skeleton(Bone[] boneList)
          Creates a skeleton from a bone list.
Skeleton(Skeleton source)
          Copy constructor.
 
Method Summary
 Matrix4f[] computeSkinningMatrices()
           
 Bone getBone(int index)
           
 Bone getBone(java.lang.String name)
           
 int getBoneCount()
           
 int getBoneIndex(Bone bone)
           
 java.lang.Class getClassTag()
           
 Bone getRoot()
           
 void read(JMEImporter im)
           
 void sendToShader(GLSLShaderObjectsState shader)
           
 void write(JMEExporter ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Skeleton

public Skeleton(Bone[] boneList)
Creates a skeleton from a bone list. The root bone is found automatically.

Parameters:
boneList -

Skeleton

public Skeleton(Skeleton source)
Copy constructor. Most of the skeleton data is deeply-copied except the bone bind and inverseBind transforms.

Parameters:
source -

Skeleton

public Skeleton()
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.

Method Detail

getRoot

public Bone getRoot()

getBone

public Bone getBone(int index)

getBone

public Bone getBone(java.lang.String name)

getBoneIndex

public int getBoneIndex(Bone bone)

computeSkinningMatrices

public Matrix4f[] computeSkinningMatrices()

getBoneCount

public int getBoneCount()

sendToShader

public void sendToShader(GLSLShaderObjectsState shader)

getClassTag

public java.lang.Class getClassTag()
Specified by:
getClassTag in interface Savable

read

public void read(JMEImporter im)
          throws java.io.IOException
Specified by:
read in interface Savable
Throws:
java.io.IOException

write

public void write(JMEExporter ex)
           throws java.io.IOException
Specified by:
write in interface Savable
Throws:
java.io.IOException