Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Protected Attributes | List of all members
castor3d::AnimationKeyFrame Class Reference

#include <AnimationKeyFrame.hpp>

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

Public Member Functions

 AnimationKeyFrame (castor::Milliseconds const &timeIndex=0_ms)
 Constructor.
 
virtual C3D_API ~AnimationKeyFrame () noexcept=default
 Destructor.
 
virtual C3D_API void initialise ()
 Initialises the keyframe.
 
castor::Milliseconds const & getTimeIndex () const
 
castor::BoundingBox const & getBoundingBox () const
 

Protected Attributes

castor::Milliseconds m_timeIndex
 
castor::BoundingBox m_boundingBox
 

Constructor & Destructor Documentation

◆ AnimationKeyFrame()

castor3d::AnimationKeyFrame::AnimationKeyFrame ( castor::Milliseconds const & timeIndex = 0_ms)
inlineexplicit

Constructor.

Parameters
[in]timeIndexWhen the key frame starts.

◆ ~AnimationKeyFrame()

virtual C3D_API castor3d::AnimationKeyFrame::~AnimationKeyFrame ( )
virtualdefaultnoexcept

Destructor.

Member Function Documentation

◆ getBoundingBox()

castor::BoundingBox const & castor3d::AnimationKeyFrame::getBoundingBox ( ) const
inline
Returns
The keyframe's bounding box.

References m_boundingBox.

◆ getTimeIndex()

castor::Milliseconds const & castor3d::AnimationKeyFrame::getTimeIndex ( ) const
inline
Returns
The start time index.

References m_timeIndex.

Referenced by castor3d::SkeletonAnimationInstanceKeyFrame::getTimeIndex().

Here is the caller graph for this function:

◆ initialise()

virtual C3D_API void castor3d::AnimationKeyFrame::initialise ( )
inlinevirtual

Initialises the keyframe.

Reimplemented in castor3d::SkeletonAnimationKeyFrame.

Member Data Documentation

◆ m_boundingBox

castor::BoundingBox castor3d::AnimationKeyFrame::m_boundingBox
protected

The bounding box.

Referenced by getBoundingBox().

◆ m_timeIndex

castor::Milliseconds castor3d::AnimationKeyFrame::m_timeIndex
protected

The start time index.

Referenced by getTimeIndex().


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