iModelDataAction Struct Reference
An action. More...
#include <imesh/mdldata.h>
Inheritance diagram for iModelDataAction:

Public Member Functions | |
virtual void | AddFrame (float Time, iObject *State)=0 |
Add a frame. | |
virtual void | DeleteFrame (size_t Frame)=0 |
Delete a frame. | |
virtual size_t | GetFrameCount () const =0 |
Return the number of key frames. | |
virtual iObject * | GetState (size_t Frame) const =0 |
Get the state information for a frame. | |
virtual float | GetTime (size_t Frame) const =0 |
Get the time value for a frame. | |
virtual float | GetTotalTime () const =0 |
Return the length (in time) of a complete animation cycle. | |
virtual iObject * | QueryObject ()=0 |
Query the iObject for this action. | |
virtual void | SetState (size_t Frame, iObject *State)=0 |
Set the state information for a frame. | |
virtual void | SetTime (size_t Frame, float NewTime)=0 |
Set the time value for a frame. |
Detailed Description
An action.This is mainly a list of key frames. Note that the key frames are not added as sub-objects, but instead they are added directly through the iModelDataAction interface. The reason is that together with every frame a time value has to be stored.
The idea of time values is the following: Every frame comes with the point in time when the frame *ends*, measured in seconds. For example, if your frames last 100msec, 200msec, 50msec and 250msec, the time values are: 0.1, 0.3, 0.35, 0.6. As this is the ending time for each frame, the last time value has three meanings:
- It is the end of the whole action
- It is the length of the action
- It wraps around to the time value 0.0
Note that the frames are automatically sorted by time.
There are different types of frames. One could imagine vertex states, skeleton states and transformation states (or other types?). Currently only vertex states (iModelDataVertices) are used.
Definition at line 236 of file mdldata.h.
Member Function Documentation
|
Add a frame.
Implemented in csModelDataAction. |
|
Delete a frame.
Implemented in csModelDataAction. |
|
Return the number of key frames.
Implemented in csModelDataAction. |
|
Get the state information for a frame.
Implemented in csModelDataAction. |
|
Get the time value for a frame.
Implemented in csModelDataAction. |
|
Return the length (in time) of a complete animation cycle.
Implemented in csModelDataAction. |
|
Query the iObject for this action.
|
|
Set the state information for a frame.
Implemented in csModelDataAction. |
|
Set the time value for a frame.
Implemented in csModelDataAction. |
The documentation for this struct was generated from the following file:
- imesh/mdldata.h
Generated for Crystal Space by doxygen 1.4.4