Castor3D 0.12.0
Multiplatform 3D engine
Public Member Functions | Friends | List of all members
castor3d::SkeletonAnimationKeyFrame Class Reference

#include <SkeletonAnimationKeyFrame.hpp>

Inheritance diagram for castor3d::SkeletonAnimationKeyFrame:
Inheritance graph
[legend]
Collaboration diagram for castor3d::SkeletonAnimationKeyFrame:
Collaboration graph
[legend]

Public Member Functions

C3D_API SkeletonAnimationKeyFrame (SkeletonAnimation &skeletonAnimation, castor::Milliseconds const &timeIndex)
 Constructor. More...
 
C3D_API void addAnimationObject (SkeletonAnimationObject &object, castor::Point3f const &translate, castor::Quaternion const &rotate, castor::Point3f const &scale)
 Adds an animation object. More...
 
C3D_API void addAnimationObject (SkeletonAnimationObject &object, castor::Matrix4x4f const &transform)
 Adds an animation object. More...
 
C3D_API bool hasObject (SkeletonAnimationObject const &object) const
 
C3D_API TransformArray::const_iterator find (SkeletonAnimationObject const &object) const
 
C3D_API TransformArray::const_iterator find (Bone const &bone) const
 
C3D_API void initialise () override
 Initialises the keyframe. More...
 
TransformArray::const_iterator begin () const
 
TransformArray::iterator begin ()
 
TransformArray::const_iterator end () const
 
TransformArray::iterator end ()
 
- Public Member Functions inherited from castor3d::AnimationKeyFrame
 AnimationKeyFrame (castor::Milliseconds const &timeIndex=0_ms)
 Constructor. More...
 
virtual C3D_API ~AnimationKeyFrame ()=default
 Destructor. More...
 
virtual C3D_API void initialise ()
 Initialises the keyframe. More...
 
castor::Milliseconds const & getTimeIndex () const
 

Friends

class BinaryParser< SkeletonAnimationKeyFrame >
 
class BinaryWriter< SkeletonAnimationKeyFrame >
 

Additional Inherited Members

- Protected Attributes inherited from castor3d::AnimationKeyFrame
castor::Milliseconds m_timeIndex
 
castor::BoundingBox m_boundingBox
 

Constructor & Destructor Documentation

◆ SkeletonAnimationKeyFrame()

C3D_API castor3d::SkeletonAnimationKeyFrame::SkeletonAnimationKeyFrame ( SkeletonAnimation skeletonAnimation,
castor::Milliseconds const &  timeIndex 
)

Constructor.

Parameters
[in]skeletonAnimationThe parent animation.
[in]timeIndexWhen the key frame starts.

Member Function Documentation

◆ addAnimationObject() [1/2]

C3D_API void castor3d::SkeletonAnimationKeyFrame::addAnimationObject ( SkeletonAnimationObject object,
castor::Matrix4x4f const &  transform 
)

Adds an animation object.

Parameters
[in]objectThe animation object.
[in]transformThe transformation at start time.

◆ addAnimationObject() [2/2]

C3D_API void castor3d::SkeletonAnimationKeyFrame::addAnimationObject ( SkeletonAnimationObject object,
castor::Point3f const &  translate,
castor::Quaternion const &  rotate,
castor::Point3f const &  scale 
)

Adds an animation object.

Parameters
[in]objectThe animation object.
[in]translateThe translation at start time.
[in]rotateThe rotation at start time.
[in]scaleThe scaling at start time.

◆ begin() [1/2]

TransformArray::iterator castor3d::SkeletonAnimationKeyFrame::begin ( )
inline
Returns
The beginning of the cumulative transforms map.

◆ begin() [2/2]

TransformArray::const_iterator castor3d::SkeletonAnimationKeyFrame::begin ( ) const
inline
Returns
The beginning of the cumulative transforms map.

◆ end() [1/2]

TransformArray::iterator castor3d::SkeletonAnimationKeyFrame::end ( )
inline
Returns
The end of the cumulative transforms map.

◆ end() [2/2]

TransformArray::const_iterator castor3d::SkeletonAnimationKeyFrame::end ( ) const
inline
Returns
The end of the cumulative transforms map.

◆ find() [1/2]

C3D_API TransformArray::const_iterator castor3d::SkeletonAnimationKeyFrame::find ( Bone const &  bone) const
Returns
The iterator matching given bone, into cumulative transforms map.

◆ find() [2/2]

C3D_API TransformArray::const_iterator castor3d::SkeletonAnimationKeyFrame::find ( SkeletonAnimationObject const &  object) const
Returns
The iterator matching given animation object, into cumulative transforms map.

◆ hasObject()

C3D_API bool castor3d::SkeletonAnimationKeyFrame::hasObject ( SkeletonAnimationObject const &  object) const
Returns
true if the given object is into the transforms map (not the cumulative one).

◆ initialise()

C3D_API void castor3d::SkeletonAnimationKeyFrame::initialise ( )
overridevirtual

Initialises the keyframe.

Reimplemented from castor3d::AnimationKeyFrame.

Friends And Related Function Documentation

◆ BinaryParser< SkeletonAnimationKeyFrame >

friend class BinaryParser< SkeletonAnimationKeyFrame >
friend

◆ BinaryWriter< SkeletonAnimationKeyFrame >

friend class BinaryWriter< SkeletonAnimationKeyFrame >
friend

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