![]() |
Castor3D 0.16.0
Multiplatform 3D engine
|
Animable public interface. More...
#include <Animable.hpp>


Public Member Functions | |
| virtual C3D_API | ~AnimableT () noexcept=default |
| void | cleanupAnimations () |
| Empties the animations map. | |
| bool | hasAnimation () const |
| bool | hasAnimation (castor::String const &name) const |
| Animation const & | getAnimation (castor::String const &name) const |
| Retrieves an animation. | |
| Animation & | getAnimation (castor::String const &name) |
| Retrieves an animation. | |
| void | addAnimation (AnimationPtr animation) |
| Adds an animation. | |
| AnimationsMap const & | getAnimations () const |
Public Member Functions inherited from castor::OwnedBy< AnimableHandlerT > | |
| AnimableHandlerT * | getOwner () const |
Protected Types | |
| using | Animation = AnimationT< AnimableHandlerT > |
| using | AnimationPtr = castor::UniquePtr< Animation > |
| using | AnimationsMap = castor::StringMap< AnimationPtr > |
Protected Member Functions | |
| void | doRemoveAnimation (castor::String const &name) |
| Removes an animation. | |
| template<typename AnimationType > | |
| AnimationType & | doGetAnimation (castor::String const &name) |
| Retrieves an animation. | |
| template<typename AnimationType > | |
| AnimationType const & | doGetAnimation (castor::String const &name) const |
| Retrieves an animation. | |
Construction / Destruction. | |
| AnimableT (AnimableHandlerT &owner) | |
| C3D_API | AnimableT (AnimableT &&rhs) noexcept=default |
| C3D_API AnimableT & | operator= (AnimableT &&rhs) noexcept=delete |
| C3D_API | AnimableT (AnimableT const &rhs)=delete |
| C3D_API AnimableT & | operator= (AnimableT const &rhs)=delete |
Protected Member Functions inherited from castor::OwnedBy< AnimableHandlerT > | |
| OwnedBy (AnimableHandlerT &owner) | |
| Constructor. | |
Protected Attributes | |
| AnimationsMap | m_animations |
Animable public interface.
|
protected |
|
protected |
|
protected |
|
inlineexplicitprotected |
|
protecteddefaultnoexcept |
|
protecteddelete |
|
virtualdefaultnoexcept |
| void castor3d::AnimableT< AnimableHandlerT >::addAnimation | ( | AnimationPtr | animation | ) |
Adds an animation.
| [in] | animation | The animation. |
| void castor3d::AnimableT< AnimableHandlerT >::cleanupAnimations | ( | ) |
Empties the animations map.
|
protected |
Retrieves an animation.
| [in] | name | The animation name |
|
protected |
Retrieves an animation.
| [in] | name | The animation name |
|
protected |
Removes an animation.
| [in] | name | The animation name |
| Animation & castor3d::AnimableT< AnimableHandlerT >::getAnimation | ( | castor::String const & | name | ) |
Retrieves an animation.
| [in] | name | The animation name |
| Animation const & castor3d::AnimableT< AnimableHandlerT >::getAnimation | ( | castor::String const & | name | ) | const |
Retrieves an animation.
| [in] | name | The animation name |
|
inline |
References castor3d::AnimableT< AnimableHandlerT >::m_animations.
| bool castor3d::AnimableT< AnimableHandlerT >::hasAnimation | ( | ) | const |
true if the object has an animation. | bool castor3d::AnimableT< AnimableHandlerT >::hasAnimation | ( | castor::String const & | name | ) | const |
| [in] | name | The animation name |
true it the object has an animation with given name.
|
protecteddeletenoexcept |
|
protecteddelete |
|
protected |
All animations.
Referenced by castor3d::AnimableT< AnimableHandlerT >::getAnimations().