CSEngine
Loading...
Searching...
No Matches
CSE::KeyFrame Class Reference

Public Member Functions

 KeyFrame (float timeStamp, std::vector< JointTransform * > &&pose)
 
float GetTimeStamp () const
 
std::vector< JointTransform * > GetJointKeyFrames () const
 

Detailed Description

Definition at line 49 of file AnimationUtil.h.

Constructor & Destructor Documentation

◆ KeyFrame()

CSE::KeyFrame::KeyFrame ( float  timeStamp,
std::vector< JointTransform * > &&  pose 
)
inline

Definition at line 51 of file AnimationUtil.h.

51 {
52 m_timeStamp = timeStamp;
53 m_pose = std::move(pose);
54 }

◆ ~KeyFrame()

CSE::KeyFrame::~KeyFrame ( )
inline

Definition at line 56 of file AnimationUtil.h.

56 {
57 for (auto pair : m_pose) {
58 SAFE_DELETE(pair);
59 }
60
61 m_pose.clear();
62 }

Member Function Documentation

◆ GetJointKeyFrames()

std::vector< JointTransform * > CSE::KeyFrame::GetJointKeyFrames ( ) const
inline

Definition at line 68 of file AnimationUtil.h.

68 {
69 return m_pose;
70 }

◆ GetTimeStamp()

float CSE::KeyFrame::GetTimeStamp ( ) const
inline

Definition at line 64 of file AnimationUtil.h.

64 {
65 return m_timeStamp;
66 }

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