|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.model.md5.MD5Animation
public class MD5Animation
MD5Animation is the final product of MD5 animation.
MD5Animation is added to a IMD5Controller
for animating the skeletal IMD5Node.
MD5Animation provides the cloning functionality so
that users can fast clone animations that may be used by multiple
IMD5Node. The newly cloned MD5Animation
is initialized and ready to be used.
| Constructor Summary | |
|---|---|
MD5Animation()
Constructor of MD5Animation. |
|
MD5Animation(java.lang.String name,
java.lang.String[] IDs,
IFrame[] frames,
float framerate)
Constructor of MD5Animation. |
|
| Method Summary | |
|---|---|
void |
addAnimation(IMD5Animation animation)
Add a child MD5 animation. |
IMD5Animation |
clone()
Clone this animation. |
boolean |
equals(java.lang.Object object)
|
float |
getAnimationTime()
Retrieve the total time of a complete cycle of this animation. |
java.lang.Class |
getClassTag()
|
int |
getFrameCount()
Retrieve the total number of frames. |
java.lang.String[] |
getJointIDs()
Retrieve the IDs of joints of this animation. |
java.lang.String |
getName()
Retrieve the name of this animation. |
IFrame |
getNextFrame()
Retrieve the next frame. |
int |
getNextIndex()
Retrieve the next frame index number. |
float |
getNextTime()
Retrieve the starting time of the next frame. |
float |
getPercentage()
Get the complete percentage of the current cycle. |
IFrame |
getPreviousFrame()
Retrieve the previous frame. |
int |
getPreviousIndex()
Retrieve the previous frame index number. |
float |
getPreviousTime()
Retrieve the starting time of the previous frame. |
int |
hashCode()
|
boolean |
isBackward()
Check if this animation is being played backward. |
boolean |
isCyleComplete()
Check if one cycle of this animation is complete, but the new one has not yet started. |
void |
read(com.jme.util.export.JMEImporter im)
|
void |
removeAnimation(IMD5Animation animation)
Remove the given animation. |
void |
reset()
Reset the time and frame index information. |
java.lang.String |
toString()
|
void |
update(float time,
int repeat,
float speed)
Update the frame index based on given values. |
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MD5Animation()
MD5Animation.
public MD5Animation(java.lang.String name,
java.lang.String[] IDs,
IFrame[] frames,
float framerate)
MD5Animation.
name - The String name of this animation.IDs - The String joint IDs.frames - The array of key IFrame.framerate - The Float frame rate.| Method Detail |
|---|
public void update(float time,
int repeat,
float speed)
IMD5Animation
update in interface IMD5Animationtime - The Float frame interpolation.repeat - The Controller repeat type.speed - The Float speed of the controller.public void addAnimation(IMD5Animation animation)
IMD5Animation
addAnimation in interface IMD5Animationanimation - The child IMD5Animation to be added.public void removeAnimation(IMD5Animation animation)
IMD5Animation
removeAnimation in interface IMD5Animationanimation - The child IMD5Animation to be removed.public float getAnimationTime()
IMD5Animation
getAnimationTime in interface IMD5AnimationFloat complete cycle time.public int getFrameCount()
IMD5Animation
getFrameCount in interface IMD5AnimationInteger number of frames.public float getPercentage()
IMD5Animation
getPercentage in interface IMD5AnimationFloat percentage value.public IFrame getPreviousFrame()
IMD5Animation
getPreviousFrame in interface IMD5AnimationIFrame.public int getPreviousIndex()
IMD5Animation
getPreviousIndex in interface IMD5AnimationInteger index number.public float getPreviousTime()
IMD5Animation
getPreviousTime in interface IMD5AnimationFloat starting time.public IFrame getNextFrame()
IMD5Animation
getNextFrame in interface IMD5AnimationIFrame.public int getNextIndex()
IMD5Animation
getNextIndex in interface IMD5AnimationInteger index number.public float getNextTime()
IMD5Animation
getNextTime in interface IMD5AnimationFloat starting time.public java.lang.String[] getJointIDs()
IMD5Animation
getJointIDs in interface IMD5AnimationString IDs.public java.lang.String getName()
IMD5Animation
getName in interface IMD5AnimationString name.public java.lang.Class getClassTag()
getClassTag in interface com.jme.util.export.Savablepublic boolean isBackward()
IMD5Animation
isBackward in interface IMD5Animationpublic boolean isCyleComplete()
IMD5Animation
isCyleComplete in interface IMD5Animation
public void write(com.jme.util.export.JMEExporter ex)
throws java.io.IOException
write in interface com.jme.util.export.Savablejava.io.IOException
public void read(com.jme.util.export.JMEImporter im)
throws java.io.IOException
read in interface com.jme.util.export.Savablejava.io.IOExceptionpublic void reset()
IMD5Animation
reset in interface IMD5Animationpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic IMD5Animation clone()
IMD5Animation
clone in interface IMD5Animationclone in class java.lang.ObjectIMD5Animation instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||