|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.md5importer.model.AbstractObservable
com.md5importer.model.MD5Anim
public class MD5Anim
MD5Anim defines the concrete implementation of
the MD5 animation data structure.
MD5Anim defines the hash code of an instance to
be the hash code of the String name. Two instances
of MD5Anim are considered as equal if both of
them have the same name.
| Constructor Summary | |
|---|---|
MD5Anim()
Constructor of MD5Anim. |
|
MD5Anim(java.lang.String name,
java.lang.String[] IDs,
IFrame[] frames,
float framerate)
Constructor of MD5Anim. |
|
| Method Summary | |
|---|---|
IMD5Anim |
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<MD5Anim> |
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. |
float |
getTime()
Retrieve the elapsed time since last frame change. |
int |
hashCode()
|
void |
read(com.jme.util.export.JMEImporter im)
|
void |
setIndices(int prev,
int next,
float time)
Set the frame indices with given values. |
java.lang.String |
toString()
|
void |
write(com.jme.util.export.JMEExporter ex)
|
| Methods inherited from class com.md5importer.model.AbstractObservable |
|---|
notifyUpdate, register, unregister |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.md5importer.interfaces.IObservable |
|---|
notifyUpdate, register, unregister |
| Constructor Detail |
|---|
public MD5Anim()
MD5Anim.
public MD5Anim(java.lang.String name,
java.lang.String[] IDs,
IFrame[] frames,
float framerate)
MD5Anim.
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 setIndices(int prev,
int next,
float time)
IMD5Anim
setIndices in interface IMD5Animprev - The Integer previous frame index.next - The Integer next frame index.time - The The Float elapsed time since last set.public float getAnimationTime()
IMD5Anim
getAnimationTime in interface IMD5AnimFloat complete cycle time.public int getFrameCount()
IMD5Anim
getFrameCount in interface IMD5AnimInteger number of frames.public float getPercentage()
IMD5Anim
getPercentage in interface IMD5AnimFloat percentage value.public IFrame getPreviousFrame()
IMD5Anim
getPreviousFrame in interface IMD5AnimIFrame.public int getPreviousIndex()
IMD5Anim
getPreviousIndex in interface IMD5AnimInteger index number.public float getPreviousTime()
IMD5Anim
getPreviousTime in interface IMD5AnimFloat starting time.public IFrame getNextFrame()
IMD5Anim
getNextFrame in interface IMD5AnimIFrame.public int getNextIndex()
IMD5Anim
getNextIndex in interface IMD5AnimInteger index number.public float getNextTime()
IMD5Anim
getNextTime in interface IMD5AnimFloat starting time.public java.lang.String[] getJointIDs()
IMD5Anim
getJointIDs in interface IMD5AnimString IDs.public java.lang.String getName()
IMD5Anim
getName in interface IMD5AnimString name.public float getTime()
IMD5Anim
getTime in interface IMD5AnimFloat time value.public java.lang.Class<MD5Anim> getClassTag()
getClassTag in interface com.jme.util.export.Savable
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 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 IMD5Anim clone()
IMD5Anim
clone in interface IMD5Animclone in class java.lang.ObjectIMD5Anim instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||