3 #include <Core/Animation/KeyFramedValue.hpp>
4 #include <Core/Asset/AnimationTime.hpp>
5 #include <Core/Asset/AssetData.hpp>
6 #include <Core/RaCore.hpp>
7 #include <Core/Utils/Log.hpp>
47 inline void setName(
const std::string& name ) { m_name = name; }
84 inline std::vector<HandleAnimation>
getHandleData()
const {
return m_keyFrame; }
89 inline void setHandleData(
const std::vector<HandleAnimation>& frameList );
95 inline void displayInfo()
const;
109 const uint size = frameList.size();
111 #pragma omp parallel for
112 for (
int i = 0; i < int( size ); ++i ) {
118 using namespace Core::Utils;
119 LOG( logDEBUG ) <<
"======== ANIMATION INFO ========";
120 LOG( logDEBUG ) <<
" Name : " << m_name;
123 LOG( logDEBUG ) <<
" Time Step : " <<
m_dt;
124 LOG( logDEBUG ) <<
" Animated Object # : " <<
m_keyFrame.size();
void setHandleData(const std::vector< HandleAnimation > &frameList)
std::vector< HandleAnimation > getHandleData() const
AnimationTime m_time
The AnimationTime for the object.
std::vector< HandleAnimation > m_keyFrame
The animation frames.
AnimationTime::Time getTimeStep() const
uint getFramesSize() const
const AnimationTime & getTime() const
AnimationTime::Time m_dt
The animation timestep.
void setName(const std::string &name)
void setTimeStep(const AnimationTime::Time &delta)
void setTime(const AnimationTime &time)
std::string m_name
The Handle's name.
AnimationTime m_animationTime
The AnimationTime for the Handle.
Core::Animation::KeyFramedValue< Transform > m_anim
The list of KeyFramed transforms applied to the Handle.