|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.collada.datastructs.animation.KeyFrame
public abstract class KeyFrame
A KeyFrame contains information for the animation of a Bone. It can contain translation, rotation or scale information.
| Nested Class Summary | |
|---|---|
static class |
KeyFrame.Axis
An Axis. |
| Field Summary | |
|---|---|
long |
time
Key frame time |
| Constructor Summary | |
|---|---|
KeyFrame()
|
|
| Method Summary | |
|---|---|
static KeyFrame |
buildPoint3fKeyFrame(float time,
float[] values,
int valueIndex)
Creates a translation key frame |
static KeyFrame |
buildQuaternion4fKeyFrame(float time,
float angle,
KeyFrame.Axis axis)
Creates a rotation key frame |
static int |
searchNextFrame(java.util.List<? extends KeyFrame> frames,
long currentTime)
Searches the next key frame according to the current time. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public long time
| Constructor Detail |
|---|
public KeyFrame()
| Method Detail |
|---|
public static KeyFrame buildPoint3fKeyFrame(float time,
float[] values,
int valueIndex)
time - frame timevalues - float values of the translationvalueIndex - first value index
public static KeyFrame buildQuaternion4fKeyFrame(float time,
float angle,
KeyFrame.Axis axis)
time - frame timeangle - rotation angle in degreesaxis - the axis of the rotation
public static int searchNextFrame(java.util.List<? extends KeyFrame> frames,
long currentTime)
frames - currentTime - in milliseconds
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||