|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jmex.model.animation.PointInTime
public class PointInTime
At a point in time is defined by time . JointController will
change joint i to the rotation jointRotation[i]
and translation jointTranslation[i]
at the point in time
time
Field Summary | |
---|---|
Quaternion[] |
jointRotation
Array of rotations for this PointInTime. |
Vector3f[] |
jointTranslation
Array of translations for this PointInTime. |
float |
time
The time represented by this PointInTime. |
java.util.BitSet |
usedRot
The bitsets specify if the translation/rotation was specified externally, or if it was interpolated. |
java.util.BitSet |
usedTrans
The bitsets specify if the translation/rotation was specified externally, or if it was interpolated. |
Constructor Summary | |
---|---|
PointInTime()
|
|
PointInTime(int numJoints)
Creates a new PointInTime with everything false or null to start with. |
|
PointInTime(int numJoints,
int time)
Constructs a new PointInTime at the given time. |
Method Summary | |
---|---|
java.lang.Class |
getClassTag()
|
void |
read(JMEImporter e)
|
(package private) void |
setRotation(int jointIndex,
float x,
float y,
float z)
|
void |
setRotation(int jointIndex,
Quaternion quaternion)
Sets for the given joint to have the given rotation. |
(package private) void |
setTranslation(int jointIndex,
float x,
float y,
float z)
|
(package private) void |
setTranslation(int jointIndex,
Vector3f v)
|
void |
write(JMEExporter e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float time
public Vector3f[] jointTranslation
public Quaternion[] jointRotation
public java.util.BitSet usedTrans
public java.util.BitSet usedRot
Constructor Detail |
---|
public PointInTime()
public PointInTime(int numJoints)
public PointInTime(int numJoints, int time)
time
- The time for the new PointInTime.controller
- TODOMethod Detail |
---|
void setRotation(int jointIndex, float x, float y, float z)
void setTranslation(int jointIndex, float x, float y, float z)
void setTranslation(int jointIndex, Vector3f v)
public void setRotation(int jointIndex, Quaternion quaternion)
jointIndex
- The joint index.quaternion
- The rotation for this point in time.public void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
java.io.IOException
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
java.io.IOException
public java.lang.Class getClassTag()
getClassTag
in interface Savable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |