![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
#include <SceneNodeAnimationInstance.hpp>


Public Member Functions | |
| C3D_API | SceneNodeAnimationInstance (SceneNodeAnimationInstance &&rhs) noexcept=delete |
| C3D_API SceneNodeAnimationInstance & | operator= (SceneNodeAnimationInstance &&rhs) noexcept=delete |
| C3D_API | SceneNodeAnimationInstance (SceneNodeAnimationInstance const &rhs)=delete |
| C3D_API SceneNodeAnimationInstance & | operator= (SceneNodeAnimationInstance const &rhs)=delete |
| C3D_API | ~SceneNodeAnimationInstance () noexcept override=default |
| C3D_API | SceneNodeAnimationInstance (AnimatedSceneNode &object, SceneNodeAnimation &animation) |
| Constructor. | |
| SceneNodeAnimation const & | getSceneNodeAnimation () const |
| AnimatedSceneNode & | getAnimatedSceneNode () |
| castor::Point3f const & | getInitialPosition () const |
| castor::Quaternion const & | getInitialOrientation () const |
| castor::Point3f const & | getInitialScale () const |
Public Member Functions inherited from castor3d::AnimationInstance | |
| C3D_API | AnimationInstance (AnimatedObject &object, Animation &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. | |
| C3D_API void | setTotalLength (castor::Milliseconds const &time) |
| Sets the animation effective length. | |
| 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 & | 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=delete |
Public Member Functions inherited from castor::OwnedBy< AnimatedObject > | |
| AnimatedObject * | getOwner () const noexcept |
| void | setOwner (AnimatedObject &owner) noexcept |
Protected Attributes | |
| AnimatedSceneNode & | m_animatedSceneNode |
| SceneNodeAnimation & | m_sceneNodeAnimation |
| AnimationKeyFrameArray::iterator | m_prev |
| AnimationKeyFrameArray::iterator | m_curr |
| InterpolatorPtr< castor::Point3f > | m_vecInterpolator |
| InterpolatorPtr< castor::Quaternion > | m_quatInterpolator |
| castor::Point3f | m_initialTranslate |
| castor::Quaternion | m_initialRotate |
| castor::Point3f | m_initialScale |
Protected Attributes inherited from castor3d::AnimationInstance | |
| Animation * | 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 } |
| castor::Milliseconds | m_totalTime { 0 } |
| AnimationState | m_state { AnimationState::eStopped } |
| InterpolatorType | m_interpolation { InterpolatorType::eLinear } |
Friends | |
| class | BinaryWriter< SceneNodeAnimation > |
| class | BinaryParser< SceneNodeAnimation > |
Additional Inherited Members | |
Protected Member Functions inherited from castor::OwnedBy< AnimatedObject > | |
| OwnedBy (AnimatedObject &owner) noexcept | |
| Constructor. | |
|
deletenoexcept |
|
delete |
|
overridedefaultnoexcept |
| C3D_API castor3d::SceneNodeAnimationInstance::SceneNodeAnimationInstance | ( | AnimatedSceneNode & | object, |
| SceneNodeAnimation & | animation ) |
Constructor.
| [in] | object | The parent AnimatedMesh. |
| [in] | animation | The animation. |
|
inline |
References m_animatedSceneNode.
|
inline |
References m_initialRotate.
|
inline |
References m_initialTranslate.
|
inline |
References m_initialScale.
|
inline |
name Getters.
References m_sceneNodeAnimation.
|
deletenoexcept |
|
delete |
|
friend |
|
friend |
|
protected |
Referenced by getAnimatedSceneNode().
|
protected |
|
protected |
Referenced by getInitialOrientation().
|
protected |
Referenced by getInitialScale().
|
protected |
Referenced by getInitialPosition().
|
protected |
|
protected |
|
protected |
Referenced by getSceneNodeAnimation().
|
protected |