Castor3D 0.16.0
Multiplatform 3D engine
|
#include <SkeletonAnimationInstance.hpp>
Public Member Functions | |
C3D_API | SkeletonAnimationInstance (SkeletonAnimationInstance &&rhs) noexcept=default |
C3D_API SkeletonAnimationInstance & | operator= (SkeletonAnimationInstance &&rhs) noexcept=delete |
C3D_API | SkeletonAnimationInstance (SkeletonAnimationInstance const &rhs)=delete |
C3D_API SkeletonAnimationInstance & | operator= (SkeletonAnimationInstance const &rhs)=delete |
C3D_API | ~SkeletonAnimationInstance () noexcept override=default |
C3D_API | SkeletonAnimationInstance (AnimatedSkeleton &object, SkeletonAnimation &animation) |
Constructor. | |
C3D_API SkeletonAnimationInstanceObjectRPtr | getObject (BoneNode const &bone) const |
Retrieves an animated bone. | |
C3D_API SkeletonAnimationInstanceObjectRPtr | getObject (SkeletonNode const &node) const |
Retrieves an animated node. | |
C3D_API SkeletonAnimationInstanceObjectRPtr | getObject (SkeletonNodeType type, castor::String const &name) const |
Retrieves an animated object. | |
auto | getObjectsCount () const |
auto | begin () |
auto | begin () const |
auto | end () |
auto | end () const |
Public Member Functions inherited from castor3d::AnimationInstance | |
C3D_API | AnimationInstance (AnimatedObject &object, Animation const &animation, bool looped=false) |
Constructor. | |
virtual C3D_API | ~AnimationInstance () noexcept=default |
Destructor. | |
C3D_API void | update (castor::Milliseconds const &elapsed) |
Updates the animation, updates the key frame at the good time index. | |
C3D_API void | play () |
Plays the animation. | |
C3D_API void | pause () |
Pauses the animation. | |
C3D_API void | stop () |
Stops the animation. | |
AnimationState | getState () const |
float | getScale () const |
void | setScale (float value) |
Sets the animation time scale. | |
castor::Milliseconds | getStartingPoint () const |
void | setStartingPoint (castor::Milliseconds value) |
Sets the animation stopping point. | |
castor::Milliseconds | getStoppingPoint () const |
void | setStoppingPoint (castor::Milliseconds value) |
Sets the animation stopping point. | |
bool | isLooped () const |
void | setLooped (bool value) |
Sets the animation loop status. | |
InterpolatorType | getInterpolation () const |
void | setInterpolation (InterpolatorType value) |
Sets the animation interpolation mode. | |
Animation const & | getAnimation () const |
C3D_API AnimationInstance & | operator= (AnimationInstance &&rhs) noexcept=delete |
C3D_API | AnimationInstance (AnimationInstance const &rhs)=delete |
C3D_API AnimationInstance & | operator= (AnimationInstance const &rhs)=delete |
C3D_API | AnimationInstance (AnimationInstance &&rhs) noexcept |
Public Member Functions inherited from castor::OwnedBy< AnimatedObject > | |
AnimatedObject * | getOwner () const |
Protected Attributes | |
SkeletonAnimationInstanceObjectPtrArray | m_toMove |
SkeletonAnimationInstanceKeyFrameArray | m_keyFrames |
SkeletonAnimationInstanceKeyFrameArray::iterator | m_curr |
Protected Attributes inherited from castor3d::AnimationInstance | |
Animation const & | m_animation |
float | m_scale { 1.0f } |
std::atomic_bool | m_looped |
castor::Milliseconds | m_startingPoint { 0 } |
castor::Milliseconds | m_stoppingPoint { 0 } |
castor::Milliseconds | m_currentTime { 0 } |
AnimationState | m_state { AnimationState::eStopped } |
InterpolatorType | m_interpolation { InterpolatorType::eLinear } |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< AnimatedObject > | |
OwnedBy (AnimatedObject &owner) | |
Constructor. | |
|
defaultnoexcept |
|
delete |
|
overridedefaultnoexcept |
C3D_API castor3d::SkeletonAnimationInstance::SkeletonAnimationInstance | ( | AnimatedSkeleton & | object, |
SkeletonAnimation & | animation ) |
Constructor.
[in] | object | The parent AnimatedSkeleton. |
[in] | animation | The animation. |
|
inline |
References m_toMove.
|
inline |
References m_toMove.
|
inline |
References m_toMove.
|
inline |
References m_toMove.
C3D_API SkeletonAnimationInstanceObjectRPtr castor3d::SkeletonAnimationInstance::getObject | ( | BoneNode const & | bone | ) | const |
Retrieves an animated bone.
[in] | bone | The bone. |
C3D_API SkeletonAnimationInstanceObjectRPtr castor3d::SkeletonAnimationInstance::getObject | ( | SkeletonNode const & | node | ) | const |
Retrieves an animated node.
[in] | node | The node. |
C3D_API SkeletonAnimationInstanceObjectRPtr castor3d::SkeletonAnimationInstance::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.
|
deletenoexcept |
|
delete |
|
protected |
Iterator to the current keyframe (when playing the animation).
|
protected |
The instance keyframes.
|
protected |
The moving objects.
Referenced by begin(), begin(), end(), end(), and getObjectsCount().