org.xith3d.loaders.models.animations
Class Bone

java.lang.Object
  extended by org.xith3d.loaders.models.animations.Bone
All Implemented Interfaces:
org.jagatoo.datatypes.NamedObject

public class Bone
extends java.lang.Object
implements org.jagatoo.datatypes.NamedObject

A Bone can either consist of a translation, rotation and scale, where the scale can be null or a full transformation matrix. In the first case the transformation matrix is null and in the latter case the translation, rotaion and scale are all null.


Constructor Summary
Bone(Bone parent, java.lang.String name, org.openmali.vecmath2.Matrix4f transformation)
           
Bone(Bone parent, java.lang.String name, org.openmali.vecmath2.Vector3f translation, org.openmali.vecmath2.Quaternion4f rotation, org.openmali.vecmath2.Tuple3f scale)
           
 
Method Summary
 java.lang.String getName()
           
 Bone getParent()
           
 org.openmali.vecmath2.Quaternion4f getRotation()
           
 org.openmali.vecmath2.Tuple3f getScale()
           
 org.openmali.vecmath2.Matrix4f getTransformation()
           
 org.openmali.vecmath2.Vector3f getTranslation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bone

public Bone(Bone parent,
            java.lang.String name,
            org.openmali.vecmath2.Vector3f translation,
            org.openmali.vecmath2.Quaternion4f rotation,
            org.openmali.vecmath2.Tuple3f scale)

Bone

public Bone(Bone parent,
            java.lang.String name,
            org.openmali.vecmath2.Matrix4f transformation)
Method Detail

getParent

public final Bone getParent()

getName

public final java.lang.String getName()
Specified by:
getName in interface org.jagatoo.datatypes.NamedObject

getTranslation

public final org.openmali.vecmath2.Vector3f getTranslation()

getRotation

public final org.openmali.vecmath2.Quaternion4f getRotation()

getScale

public final org.openmali.vecmath2.Tuple3f getScale()

getTransformation

public final org.openmali.vecmath2.Matrix4f getTransformation()