![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
Animation base class. More...
#include <Animation.hpp>
Public Member Functions | |
AnimationT (AnimableHandlerT &handler, AnimationType type, AnimableT< AnimableHandlerT > &animable, castor::String const &name=castor::cuEmptyString) | |
Constructor. More... | |
AnimationT (AnimableHandlerT &handler, AnimationType type, castor::String const &name=castor::cuEmptyString) | |
Constructor. More... | |
void | addKeyFrame (AnimationKeyFrameUPtr keyFrame) |
Adds a keyframe to the animation. More... | |
AnimationKeyFrameArray::iterator | find (castor::Milliseconds const &time) |
Finds a keyframe given a time index. More... | |
void | findKeyFrame (castor::Milliseconds const &time, AnimationKeyFrameArray::iterator &prv, AnimationKeyFrameArray::iterator &cur) const |
Finds a keyframe given a time index. More... | |
void | updateLength () |
Updates the animation length. More... | |
bool | isEmpty () const |
AnimationKeyFrameArray::const_iterator | begin () const |
AnimationKeyFrameArray::iterator | begin () |
AnimationKeyFrameArray::const_iterator | end () const |
AnimationKeyFrameArray::iterator | end () |
AnimationType | getType () const |
castor::Milliseconds const & | getLength () const |
AnimableT< AnimableHandlerT > * | getAnimable () const |
C3D_API | AnimationT (AnimationT &&rhs)=default |
C3D_API AnimationT & | operator= (AnimationT &&rhs)=delete |
C3D_API | AnimationT (AnimationT const &rhs)=delete |
C3D_API AnimationT & | operator= (AnimationT const &rhs)=delete |
virtual C3D_API | ~AnimationT ()=default |
Protected Attributes | |
AnimableT< AnimableHandlerT > * | m_animable {} |
AnimationType | m_type { AnimationType::eCount } |
castor::Milliseconds | m_length { 0 } |
AnimationKeyFrameArray | m_keyframes |
Friends | |
class | BinaryWriter< AnimationT > |
class | BinaryParser< AnimationT > |
Animation base class.
|
default |
name Copy / Move.
|
delete |
|
virtualdefault |
|
inline |
Constructor.
[in] | handler | The parent handler. |
[in] | type | The type of the animation. |
[in] | animable | The parent animable object. |
[in] | name | The name of the animation. |
|
inline |
Constructor.
[in] | handler | The parent handler. |
[in] | type | The type of the animation. |
[in] | name | The name of the animation. |
|
inline |
Adds a keyframe to the animation.
[in] | keyFrame | The keyframe. |
|
inline |
References castor3d::AnimationT< AnimableHandlerT >::m_keyframes.
|
inline |
References castor3d::AnimationT< AnimableHandlerT >::m_keyframes.
|
inline |
References castor3d::AnimationT< AnimableHandlerT >::m_keyframes.
|
inline |
References castor3d::AnimationT< AnimableHandlerT >::m_keyframes.
|
inline |
Finds a keyframe given a time index.
[in] | time | The time index. |
|
inline |
Finds a keyframe given a time index.
[in] | time | The time index. |
[in,out] | prv | The previous keyframe, receives the new previous keyframe, if there is a change. |
[in,out] | cur | Receives the current keyframe, receives the new current keyframe, if there is a change. |
|
inline |
|
inline |
References castor3d::AnimationT< AnimableHandlerT >::m_length.
|
inline |
References castor3d::AnimationT< AnimableHandlerT >::m_type.
|
inline |
true
if the key frames list is empty. References castor3d::AnimationT< AnimableHandlerT >::m_keyframes.
|
delete |
|
delete |
|
inline |
Updates the animation length.
|
friend |
|
friend |
|
protected |
Referenced by castor3d::AnimationT< AnimableHandlerT >::getAnimable().
|
protected |
The key frames.
Referenced by castor3d::AnimationT< AnimableHandlerT >::begin(), castor3d::AnimationT< AnimableHandlerT >::end(), and castor3d::AnimationT< AnimableHandlerT >::isEmpty().
|
protected |
The animation length.
Referenced by castor3d::AnimationT< AnimableHandlerT >::getLength().
|
protected |
The animation type.
Referenced by castor3d::AnimationT< AnimableHandlerT >::getType().