Castor3D  ..
Classes | Public Member Functions | List of all members
Castor3D::SkeletonAnimationNode Class Reference

Implementation of MovingObjectBase for abstract nodes. More...

+ Inheritance diagram for Castor3D::SkeletonAnimationNode:
+ Collaboration diagram for Castor3D::SkeletonAnimationNode:

Classes

class  BinaryParser
 MovingBone binary loader. More...
 

Public Member Functions

C3D_API SkeletonAnimationNode (Castor::String const &p_name=Castor::cuEmptyString)
 Constructor. More...
 
C3D_API ~SkeletonAnimationNode ()
 Destructor. More...
 
virtual C3D_API Castor::String const & GetName () const
 Retrieves the object name. More...
 
- Public Member Functions inherited from Castor3D::AnimationObject
virtual C3D_API ~AnimationObject ()
 Destructor. More...
 
C3D_API void AddChild (AnimationObjectSPtr p_object)
 Adds a child to this object. More...
 
C3D_API void Update (real p_time, Castor::Matrix4x4r const &p_transformations)
 Updates the object, applies the transformations at given time. More...
 
C3D_API KeyFrameAddKeyFrame (real p_from, Castor::Point3r const &p_translate=Castor::Point3r{}, Castor::Quaternion const &p_rotate=Castor::Quaternion{}, Castor::Point3r const &p_scale=Castor::Point3r{ 1.0_r, 1.0_r, 1.0_r })
 Creates a scaling key frame and adds it to the list. More...
 
C3D_API void RemoveKeyFrame (real p_time)
 Deletes the scaling key frame at time index p_time. More...
 
C3D_API void SetInterpolationMode (eINTERPOLATOR_MODE p_mode)
 
C3D_API AnimationObjectSPtr Clone (Animation &p_animation)
 Clones this moving thing. More...
 
eINTERPOLATOR_MODE GetInterpolationMode () const
 
KeyFrameArray const & GetKeyFrames () const
 
real GetLength () const
 
eANIMATION_OBJECT_TYPE GetType () const
 
void SetLength (real p_length)
 Sets the animation length. More...
 
Castor::Matrix4x4r const & GetFinalTransform () const
 The final object's animations transformation. More...
 
Castor::Matrix4x4r const & GetNodeTransform () const
 Retrieves the animation node transformation. More...
 
void SetNodeTransform (Castor::Matrix4x4r const &p_transform)
 Sets the animation node transformation. More...
 
bool HasKeyFrames () const
 Tells whether or not the object has keyframes. More...
 
AnimationObjectPtrArray const & GetChildren () const
 

Additional Inherited Members

- Protected Member Functions inherited from Castor3D::AnimationObject
C3D_API AnimationObject (eANIMATION_OBJECT_TYPE p_type)
 Constructor. More...
 
C3D_API AnimationObject (AnimationObject const &p_rhs)
 Copy constructor. More...
 
- Protected Attributes inherited from Castor3D::AnimationObject
eANIMATION_OBJECT_TYPE m_type
 The moving thing type. More...
 
eINTERPOLATOR_MODE m_mode = eINTERPOLATOR_MODE_NONE
 The interpolation mode. More...
 
std::unique_ptr< Point3rInterpolatorm_pointInterpolator
 The point interpolator. More...
 
std::unique_ptr< QuaternionInterpolatorm_quaternionInterpolator
 The quaternion interpolator. More...
 
KeyFrameArray m_keyframes
 The key frames. More...
 
KeyFrameArray::const_iterator m_prev
 Iterator to the previous keyframe (when playing the animation). More...
 
KeyFrameArray::const_iterator m_curr
 Iterator to the current keyframe (when playing the animation). More...
 
Castor::Matrix4x4r m_nodeTransform
 Animation node transformations. More...
 
real m_length
 The animation length. More...
 
AnimationObjectPtrArray m_children
 The objects depending on this one. More...
 
Castor::Matrix4x4r m_cumulativeTransform
 The cumulative animation transformations. More...
 
Castor::Matrix4x4r m_finalTransform
 The matrix holding transformation at current time. More...
 

Detailed Description

Implementation of MovingObjectBase for abstract nodes.

Author
Sylvain DOREMUS
Version
0.7.0
Date
09/12/2013
Remarks
Used to decompose the model and place intermediate animations

Constructor & Destructor Documentation

◆ SkeletonAnimationNode()

C3D_API Castor3D::SkeletonAnimationNode::SkeletonAnimationNode ( Castor::String const &  p_name = Castor::cuEmptyString)

Constructor.

Parameters
[in]p_nameThe node name.

◆ ~SkeletonAnimationNode()

C3D_API Castor3D::SkeletonAnimationNode::~SkeletonAnimationNode ( )

Destructor.

Member Function Documentation

◆ GetName()

virtual C3D_API Castor::String const& Castor3D::SkeletonAnimationNode::GetName ( ) const
inlinevirtual

Retrieves the object name.

Returns
The name

Implements Castor3D::AnimationObject.


The documentation for this class was generated from the following file: