org.jagatoo.loaders.models.ms3d
Class MS3DJoint

java.lang.Object
  extended by org.jagatoo.loaders.models.ms3d.MS3DJoint

public class MS3DJoint
extends java.lang.Object


Field Summary
 int curRotFrame
           
 int curTransFrame
           
 org.openmali.vecmath2.Matrix4f matAbs
           
 org.openmali.vecmath2.Matrix4f matFinal
           
 org.openmali.vecmath2.Matrix4f matLocal
           
 java.lang.String name
           
 int numRotFrames
           
 int numTransFrames
           
 java.lang.String parent
           
 int parentIndex
           
 org.openmali.vecmath2.Point3f position
           
 org.openmali.vecmath2.Point3f rotation
           
 MS3DKeyFrame[] rotKeyFrames
           
 MS3DKeyFrame[] transKeyFrames
           
 
Constructor Summary
MS3DJoint(LittleEndianDataInputStream in)
           
 
Method Summary
 boolean hasKeyFrames()
          Says if the joint has at least one key frame to animate
 int selectCurrentRotFrame(float currentTime)
          Selects the current rotation key frame, based on the current time
 int selectCurrentTransFrame(float currentTime)
          Selects the current transformation key frame, based on the current time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name

parent

public java.lang.String parent

rotation

public org.openmali.vecmath2.Point3f rotation

position

public org.openmali.vecmath2.Point3f position

numRotFrames

public int numRotFrames

numTransFrames

public int numTransFrames

rotKeyFrames

public MS3DKeyFrame[] rotKeyFrames

transKeyFrames

public MS3DKeyFrame[] transKeyFrames

parentIndex

public int parentIndex

matLocal

public org.openmali.vecmath2.Matrix4f matLocal

matAbs

public org.openmali.vecmath2.Matrix4f matAbs

matFinal

public org.openmali.vecmath2.Matrix4f matFinal

curRotFrame

public int curRotFrame

curTransFrame

public int curTransFrame
Constructor Detail

MS3DJoint

public MS3DJoint(LittleEndianDataInputStream in)
          throws java.io.IOException
Throws:
java.io.IOException
Method Detail

selectCurrentTransFrame

public int selectCurrentTransFrame(float currentTime)
Selects the current transformation key frame, based on the current time

Parameters:
currentTime - beetween 0 and the end of the animation, in seconds
Returns:
frame index selected

selectCurrentRotFrame

public int selectCurrentRotFrame(float currentTime)
Selects the current rotation key frame, based on the current time

Parameters:
currentTime - beetween 0 and the end of the animation, in seconds
Returns:
frame index selected

hasKeyFrames

public boolean hasKeyFrames()
Says if the joint has at least one key frame to animate

Returns:
true/false