SLProject 4.0.000
|
SLAnimManager is the central class for all animation handling. More...
#include <SLAnimManager.h>
Private Attributes | |
SLVSkeleton | _skeletons |
all skeleton instances More... | |
SLMAnimation | _nodeAnimations |
node animations More... | |
SLMAnimPlayback | _nodeAnimPlaybacks |
node animation playbacks More... | |
SLVstring | _allAnimNames |
vector with all animation names More... | |
SLVAnimPlayback | _allAnimPlaybacks |
vector with all animation playbacks More... | |
SLAnimManager is the central class for all animation handling.
A single instance of this class is hold by the SLScene instance and is responsible for updating the enabled animations and to manage their life time. If keeps a list of all skeletons and node animations and also holds a list of all animation playback controllers. The update of all animations is done before the rendering of all SLSceneView in SLScene::updateIfAllViewsGotPainted by calling the SLAnimManager::update.
SLAnimManager::~SLAnimManager | ( | ) |
destructor
void SLAnimManager::addNodeAnimation | ( | SLAnimation * | anim | ) |
void SLAnimManager::addSkeleton | ( | SLAnimSkeleton * | skel | ) |
Add a skeleton to the skeleton vector.
|
inline |
|
inline |
|
inline |
|
inline |
void SLAnimManager::clear | ( | ) |
Clears and deletes all node animations and skeletons.
SLAnimation * SLAnimManager::createNodeAnimation | ( | const SLstring & | name, |
SLfloat | duration | ||
) |
Creates a new node animation
name | the animation name |
duration | length of the animation |
SLAnimation * SLAnimManager::createNodeAnimation | ( | const SLstring & | name, |
SLfloat | duration, | ||
SLbool | enabled, | ||
SLEasingCurve | easing, | ||
SLAnimLooping | looping | ||
) |
Creates new SLAnimation istance for node animations. It will already create and set parameters for the respective SLAnimPlayback.
SLAnimation * SLAnimManager::createNodeAnimation | ( | SLfloat | duration | ) |
Creates a new node animation
duration | length of the animation |
void SLAnimManager::drawVisuals | ( | SLSceneView * | sv | ) |
Draws the animation visualizations.
|
inline |
|
inline |
SLAnimPlayback * SLAnimManager::nodeAnimPlayback | ( | const SLstring & | name | ) |
Returns the playback of a node animation by name if it exists.
|
inline |
Advances the time of all enabled animation plays.
|
private |
vector with all animation names
|
private |
vector with all animation playbacks
|
private |
node animations
|
private |
node animation playbacks
|
private |
all skeleton instances