![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
Animable public interface. More...
#include <Animable.hpp>
Public Member Functions | |
virtual C3D_API | ~AnimableT ()=default |
void | cleanupAnimations () |
Empties the animations map. More... | |
bool | hasAnimation () const |
bool | hasAnimation (castor::String const &name) const |
Animation const & | getAnimation (castor::String const &name) const |
Retrieves an animation. More... | |
Animation & | getAnimation (castor::String const &name) |
Retrieves an animation. More... | |
void | addAnimation (AnimationPtr animation) |
Adds an animation. More... | |
AnimationPtrStrMap const & | getAnimations () const |
Protected Types | |
using | Animation = AnimationT< AnimableHandlerT > |
using | AnimationPtr = std::unique_ptr< Animation > |
using | AnimationPtrStrMap = std::map< castor::String, AnimationPtr > |
Protected Member Functions | |
void | doRemoveAnimation (castor::String const &name) |
Removes an animation. More... | |
template<typename AnimationType > | |
AnimationType & | doGetAnimation (castor::String const &name) |
Retrieves an animation. More... | |
template<typename AnimationType > | |
AnimationType const & | doGetAnimation (castor::String const &name) const |
Retrieves an animation. More... | |
Construction / Destruction. | |
AnimableT (AnimableHandlerT &owner) | |
C3D_API | AnimableT (AnimableT &&rhs)=default |
C3D_API AnimableT & | operator= (AnimableT &&rhs)=delete |
C3D_API | AnimableT (AnimableT const &rhs)=delete |
C3D_API AnimableT & | operator= (AnimableT const &rhs)=delete |
Protected Attributes | |
AnimationPtrStrMap | m_animations |
Animable public interface.
|
protected |
|
protected |
|
protected |
|
inlineexplicitprotected |
|
protecteddefault |
|
protecteddelete |
|
virtualdefault |
void castor3d::AnimableT< AnimableHandlerT >::addAnimation | ( | AnimationPtr | animation | ) |
Adds an animation.
[in] | animation | The animation. |
|
inline |
Empties the animations map.
|
inlineprotected |
Retrieves an animation.
[in] | name | The animation name |
|
inlineprotected |
Retrieves an animation.
[in] | name | The animation name |
|
inlineprotected |
Removes an animation.
[in] | name | The animation name |
|
inline |
Retrieves an animation.
[in] | name | The animation name |
|
inline |
Retrieves an animation.
[in] | name | The animation name |
|
inline |
References castor3d::AnimableT< AnimableHandlerT >::m_animations.
|
inline |
true
if the object has an animation.
|
inline |
[in] | name | The animation name |
true
it the object has an animation with given name.
|
protecteddelete |
|
protecteddelete |
|
protected |
All animations.
Referenced by castor3d::AnimableT< AnimableHandlerT >::getAnimations().