|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.animation.Animation
public class Animation
The animation class updates the animation target with the tracks of a given type.
Constructor Summary | |
---|---|
Animation()
Serialization-only. |
|
Animation(java.lang.String name,
float length)
Creates a new Animation with the given name and length. |
Method Summary | |
---|---|
Animation |
clone()
This method creates a clone of the current object. |
float |
getLength()
Returns the length in seconds of this animation |
java.lang.String |
getName()
The name of the bone animation |
Track[] |
getTracks()
Returns the tracks set in setTracks(com.jme3.animation.Track[]) . |
void |
read(JmeImporter im)
|
void |
setTracks(Track[] tracks)
Set the Track s to be used by this animation. |
java.lang.String |
toString()
|
void |
write(JmeExporter ex)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Animation()
public Animation(java.lang.String name, float length)
Animation
with the given name and length.
name
- The name of the animation.length
- Length in seconds of the animation.Method Detail |
---|
public java.lang.String getName()
public float getLength()
public void setTracks(Track[] tracks)
Track
s to be used by this animation.
The array should be organized so that the appropriate Track can be retrieved based on a bone index.
tracks
- The tracks to set.public Track[] getTracks()
setTracks(com.jme3.animation.Track[])
.
public Animation clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |