com.jme.animation
Class SpatialTransformer.PointInTime

java.lang.Object
  extended by com.jme.animation.SpatialTransformer.PointInTime
All Implemented Interfaces:
Savable
Enclosing class:
SpatialTransformer

public static class SpatialTransformer.PointInTime
extends java.lang.Object
implements Savable

Defines a point in time where at time time, ohject toChange[i] will assume transformation look[i]. BitSet's used* specify if the transformation value was specified by the user, or interpolated


Field Summary
 TransformQuaternion[] look
          toChange[i] looks like look[i] at time.
 float time
          The time of this TransformationMatrix.
 java.util.BitSet usedRot
          Bit i is true if look[i].rotation was user defined.
 java.util.BitSet usedScale
          Bit i is true if look[i].scale was user defined.
 java.util.BitSet usedTrans
          Bit i is true if look[i].translation was user defined.
 
Constructor Summary
SpatialTransformer.PointInTime()
           
SpatialTransformer.PointInTime(float time, int numObjects)
          Constructs a new PointInTime with the time time
 
Method Summary
 java.lang.Class getClassTag()
           
 void read(JMEImporter e)
           
(package private)  void setRotation(int objIndex, Quaternion rot)
          Sets the rotation for objIndex and sets usedRot to true for that index
(package private)  void setScale(int objIndex, Vector3f scale)
          Sets the scale for objIndex and sets usedScale to true for that index
(package private)  void setTranslation(int objIndex, Vector3f trans)
          Sets the translation for objIndex and sets usedTrans to true for that index
 void write(JMEExporter e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

usedRot

public java.util.BitSet usedRot
Bit i is true if look[i].rotation was user defined.


usedTrans

public java.util.BitSet usedTrans
Bit i is true if look[i].translation was user defined.


usedScale

public java.util.BitSet usedScale
Bit i is true if look[i].scale was user defined.


time

public float time
The time of this TransformationMatrix.


look

public TransformQuaternion[] look
toChange[i] looks like look[i] at time.

Constructor Detail

SpatialTransformer.PointInTime

public SpatialTransformer.PointInTime()

SpatialTransformer.PointInTime

public SpatialTransformer.PointInTime(float time,
                                      int numObjects)
Constructs a new PointInTime with the time time

Parameters:
time - The the for this PointInTime.
Method Detail

setRotation

void setRotation(int objIndex,
                 Quaternion rot)
Sets the rotation for objIndex and sets usedRot to true for that index

Parameters:
objIndex - The object to take the rotation at this point in time.
rot - The rotation to take.

setTranslation

void setTranslation(int objIndex,
                    Vector3f trans)
Sets the translation for objIndex and sets usedTrans to true for that index

Parameters:
objIndex - The object to take the translation at this point in time.
trans - The translation to take.

setScale

void setScale(int objIndex,
              Vector3f scale)
Sets the scale for objIndex and sets usedScale to true for that index

Parameters:
objIndex - The object to take the scale at this point in time.
scale - The scale to take.

write

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

read

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

getClassTag

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