Castor3D 0.16.0
Multiplatform 3D engine
|
#include <SkeletonAnimation.hpp>
Public Member Functions | |
C3D_API | SkeletonAnimation (Animable &animable, castor::String const &name=castor::cuEmptyString) |
Constructor. | |
C3D_API | SkeletonAnimation (SkeletonAnimation &&rhs)=default |
Move constructor. | |
C3D_API SkeletonAnimation & | operator= (SkeletonAnimation &&rhs)=delete |
Move assignment operator. | |
C3D_API | SkeletonAnimation (SkeletonAnimation const &rhs)=delete |
Copy constructor. | |
C3D_API SkeletonAnimation & | operator= (SkeletonAnimation const &rhs)=delete |
Copy assignment operator. | |
C3D_API SkeletonAnimationObjectRPtr | addObject (SkeletonNode &node, SkeletonAnimationObject const *parent) |
Creates and adds a moving node. | |
C3D_API SkeletonAnimationObjectRPtr | addObject (BoneNode &bone, SkeletonAnimationObject const *parent) |
Creates and adds a moving bone. | |
C3D_API SkeletonAnimationObjectRPtr | addObject (SkeletonAnimationObjectUPtr object, SkeletonAnimationObject const *parent) |
adds an animated object. | |
C3D_API bool | hasObject (SkeletonNodeType type, castor::String const &name) const |
Tells if the animation has the animated object. | |
C3D_API SkeletonAnimationObjectRPtr | getObject (SkeletonNode const &node) const |
Retrieves an animated node. | |
C3D_API SkeletonAnimationObjectRPtr | getObject (BoneNode const &bone) const |
Retrieves an animated bone. | |
C3D_API SkeletonAnimationObjectRPtr | getObject (SkeletonNodeType type, castor::String const &name) const |
Retrieves an animated object. | |
auto const & | getObjects () const |
SkeletonAnimationObjectArray const & | getRootObjects () const |
Public Member Functions inherited from castor3d::AnimationT< Engine > | |
AnimationT (Engine &handler, AnimationType type, AnimableT< Engine > &animable, castor::String const &name=castor::cuEmptyString) | |
Constructor. | |
AnimationT (Engine &handler, AnimationType type, castor::String const &name=castor::cuEmptyString) | |
Constructor. | |
void | addKeyFrame (AnimationKeyFrameUPtr keyFrame) |
Adds a keyframe to the animation. | |
AnimationKeyFrameArray::iterator | find (castor::Milliseconds const &time) |
Finds a keyframe given a time index. | |
void | findKeyFrame (castor::Milliseconds const &time, AnimationKeyFrameArray::iterator &prv, AnimationKeyFrameArray::iterator &cur) const |
Finds a keyframe given a time index. | |
void | updateLength () |
Updates the animation length. | |
bool | isEmpty () const |
size_t | size () 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< Engine > * | getAnimable () const |
C3D_API | AnimationT (AnimationT &&rhs) noexcept=default |
C3D_API | AnimationT (AnimationT const &rhs)=delete |
C3D_API AnimationT & | operator= (AnimationT &&rhs) noexcept=delete |
C3D_API AnimationT & | operator= (AnimationT const &rhs)=delete |
virtual C3D_API | ~AnimationT () noexcept=default |
Public Member Functions inherited from castor::NamedBaseT< T > | |
NamedBaseT (T name) noexcept | |
Constructor. | |
T const & | getName () const noexcept |
Retrieves the name. | |
void | rename (T name) noexcept |
Public Member Functions inherited from castor::OwnedBy< Owner > | |
Owner * | getOwner () const |
Protected Types | |
using | ObjectMap = castor::StringMap< SkeletonAnimationObjectUPtr > |
Protected Attributes | |
SkeletonAnimationObjectArray | m_rootObjects |
ObjectMap | m_toMove |
Protected Attributes inherited from castor3d::AnimationT< Engine > | |
AnimableT< Engine > * | m_animable |
AnimationType | m_type |
castor::Milliseconds | m_length |
AnimationKeyFrameArray | m_keyframes |
Protected Attributes inherited from castor::NamedBaseT< T > | |
T | m_name |
Friends | |
class | BinaryWriter< SkeletonAnimation > |
class | BinaryParser< SkeletonAnimation > |
class | SkeletonAnimationInstance |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< Owner > | |
OwnedBy (Owner &owner) | |
Constructor. | |
|
protected |
|
explicit |
Constructor.
[in] | animable | The parent animable object. |
[in] | name | The name of the animation. |
|
default |
Move constructor.
|
delete |
Copy constructor.
C3D_API SkeletonAnimationObjectRPtr castor3d::SkeletonAnimation::addObject | ( | BoneNode & | bone, |
SkeletonAnimationObject const * | parent ) |
Creates and adds a moving bone.
[in] | bone | The bone to add. |
[in] | parent | The moving object's parent. |
C3D_API SkeletonAnimationObjectRPtr castor3d::SkeletonAnimation::addObject | ( | SkeletonAnimationObjectUPtr | object, |
SkeletonAnimationObject const * | parent ) |
adds an animated object.
[in] | object | The animated object to add. |
[in] | parent | The moving object's parent. |
C3D_API SkeletonAnimationObjectRPtr castor3d::SkeletonAnimation::addObject | ( | SkeletonNode & | node, |
SkeletonAnimationObject const * | parent ) |
Creates and adds a moving node.
[in] | node | The node to add. |
[in] | parent | The moving object's parent. |
C3D_API SkeletonAnimationObjectRPtr castor3d::SkeletonAnimation::getObject | ( | BoneNode const & | bone | ) | const |
Retrieves an animated bone.
[in] | bone | The bone. |
C3D_API SkeletonAnimationObjectRPtr castor3d::SkeletonAnimation::getObject | ( | SkeletonNode const & | node | ) | const |
Retrieves an animated node.
[in] | node | The node. |
C3D_API SkeletonAnimationObjectRPtr castor3d::SkeletonAnimation::getObject | ( | SkeletonNodeType | type, |
castor::String const & | name ) const |
Retrieves an animated object.
[in] | type | The object type. |
[in] | name | The object name. |
|
inline |
References m_toMove.
|
inline |
References m_rootObjects.
C3D_API bool castor3d::SkeletonAnimation::hasObject | ( | SkeletonNodeType | type, |
castor::String const & | name ) const |
Tells if the animation has the animated object.
[in] | type | The object type. |
[in] | name | The object name. |
|
delete |
Move assignment operator.
|
delete |
Copy assignment operator.
|
friend |
|
friend |
|
friend |
|
protected |
The root moving objects.
Referenced by getRootObjects().
|
protected |
The moving objects.
Referenced by getObjects().