|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IMD5Anim
IMD5Anim defines the interface of a data structure
that represents a completely loaded MD5 animation unit. It
internally utilizes IFrame instances to actually
maintain the joint position data.
IMD5Anim operates on the previous and next frame
indices set by external controller unit. It provide various
retrieval methods related to frames based on current set indices.
IMD5Anim is defined as an observable unit that can
be monitored by various IObserver instances. These
observers should be notified when the frame indices of the
animation are modified through the setIndices method.
This implies that the notifyUpdate method should be
invoked after the indices have been set completely in an update
cycle.
IMD5Anim uses ReentrantLock to guard
setIndices and all the frame related retrieval
methods to guarantees the compound action for setting the next
and previous frame indices is performed atomically.
| Method Summary | |
|---|---|
IMD5Anim |
clone()
Clone this animation. |
float |
getAnimationTime()
Retrieve the total time of a complete cycle of this animation. |
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. |
void |
setIndices(int prev,
int next,
float time)
Set the frame indices with given values. |
| Methods inherited from interface com.md5importer.interfaces.IObservable |
|---|
notifyUpdate, register, unregister |
| Methods inherited from interface com.jme.util.export.Savable |
|---|
getClassTag, read, write |
| Method Detail |
|---|
void setIndices(int prev,
int next,
float time)
prev - The Integer previous frame index.next - The Integer next frame index.time - The The Float elapsed time since last set.float getAnimationTime()
Float complete cycle time.int getFrameCount()
Integer number of frames.float getPercentage()
Float percentage value.IFrame getPreviousFrame()
IFrame.int getPreviousIndex()
Integer index number.float getPreviousTime()
Float starting time.IFrame getNextFrame()
IFrame.int getNextIndex()
Integer index number.float getNextTime()
Float starting time.java.lang.String[] getJointIDs()
String IDs.java.lang.String getName()
String name.float getTime()
Float time value.IMD5Anim clone()
IMD5Anim instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||