org.jagatoo.loaders.models.cal3d.core
Class CalCoreKeyframe

java.lang.Object
  extended by org.jagatoo.loaders.models.cal3d.core.CalCoreKeyframe

public class CalCoreKeyframe
extends java.lang.Object

The core keyframe class.


Field Summary
protected  org.openmali.vecmath2.Quaternion4f rotation
           
protected  float time
           
protected  org.openmali.vecmath2.Vector3f translation
           
 
Constructor Summary
CalCoreKeyframe()
          Constructs the core keyframe instance.
 
Method Summary
 org.openmali.vecmath2.Quaternion4f getRotation()
          Returns the rotation.
 float getTime()
          Returns the time.
 org.openmali.vecmath2.Vector3f getTranslation()
          Returns the translation.
 void setRotation(org.openmali.vecmath2.Quaternion4f rotation)
          Sets the rotation.
 void setTime(float time)
          Sets the time.
 void setTranslation(org.openmali.vecmath2.Vector3f translation)
          Sets the translation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

time

protected float time

translation

protected org.openmali.vecmath2.Vector3f translation

rotation

protected org.openmali.vecmath2.Quaternion4f rotation
Constructor Detail

CalCoreKeyframe

public CalCoreKeyframe()
Constructs the core keyframe instance. This function is the default constructor of the core keyframe instance.

Method Detail

getRotation

public org.openmali.vecmath2.Quaternion4f getRotation()
Returns the rotation. This function returns the rotation of the core keyframe instance.

Returns:
The rotation as quaternion.

getTime

public float getTime()
Returns the time. This function returns the time of the core keyframe instance.

Returns:
The time in seconds.

getTranslation

public org.openmali.vecmath2.Vector3f getTranslation()
Returns the translation. This function returns the translation of the core keyframe instance.

Returns:
The translation as vector.

setRotation

public void setRotation(org.openmali.vecmath2.Quaternion4f rotation)
Sets the rotation. This function sets the rotation of the core keyframe instance.

Parameters:
rotation - The rotation as quaternion.

setTime

public void setTime(float time)
Sets the time. This function sets the time of the core keyframe instance.

Parameters:
time - The time in seconds.

setTranslation

public void setTranslation(org.openmali.vecmath2.Vector3f translation)
Sets the translation. This function sets the translation of the core keyframe instance.

Parameters:
translation - The translation as vector.