76 SNode* associatedNode;
77 unsigned short animationIndex;
78 unsigned short bUpdatedBySequence;
158 void Apply(
const float& timePosition);
162 virtual void SetWeight(
const float& weight);
202 virtual void SetEnable(
const bool& enable);
210 void SetLoop(
const bool& loop);
235 void SetSpeed(
const float& newSpeed);
247 void AddTime(
const float& time);
259 void Update(
const Ogre::FrameEvent& evt);
264 virtual void _UpdateImpl(
const Ogre::FrameEvent &evt);
268 SAnim(
SScene* scene,
const std::string& animationName,
SNode* animationAssociatedNode,
const unsigned short& animationId,
const AnimType& animationType);
SScene * GetParentScene()
void RemoveAnimationTrack(SAnimTrack *existingAnimationTrack)
virtual void SetTimePosition(const float &timePosition)
virtual void _UpdateImpl(const Ogre::FrameEvent &evt)
void AddTime(const float &time)
void SetInitialLoop(const bool &loop)
void SetOptimise(const bool &optimize)
void DeleteAnimationTrack(SAnimTrack *existingAnimationTrack)
virtual SAnimTrack * CreateAnimationTrackImpl(const std::string &newAnimationTrackName)
AnimRotationInterpolationMode
@ SO3_RIM_LINEAR
Values are interpolated linearly. This is faster but does not necessarily give a completely accurate ...
@ SO3_RIM_SPHERICAL
Values are interpolated spherically. This is more accurate but has a higher cost.
virtual void SetWeight(const float &weight)
void Update(const Ogre::FrameEvent &evt)
virtual Ogre::AnimationState * _GetOgreAnimationState()=0
void Apply(const float &timePosition)
SAnimTrack * GetAnimationTrack(const unsigned short &index)
@ SO3_IM_LINEAR
Values are interpolated along straight lines.
@ SO3_IM_SPLINE
Values are interpolated along a spline, resulting in smoother changes in direction.
Ogre::Animation * GetOgreAnimationPointer()
unsigned short GetIndex()
AnimInterpolationMode GetInterpolationMode()
void SetLoop(const bool &loop)
SAnimTrack * CreateAnimationTrack(const std::string &newAnimationTrackName)
virtual void SetEnable(const bool &enable)
AnimRotationInterpolationMode GetRotationInterpolationMode()
void SetRotationInterpolationMode(const AnimRotationInterpolationMode &interpolationMode)
unsigned short GetNumAnimationsTracks()
void SetPaused(const bool &pauseState)
void AddAnimationTrack(SAnimTrack *existingAnimationTrack)
Ogre::Animation * ogreAnimation
void SetLength(const float &length)
void SetInitialWeight(const float &weight)
virtual float GetWeight()
SAnimTrackList animationTrackList
void SetInterpolationMode(const AnimInterpolationMode &interpolationMode)
void SetSpeed(const float &newSpeed)
void SetSequenceUpdated(const bool &value)
SAnimTrackList GetAnimationsTracks() const
void SetSkipFrame(const bool &state)
~SAnimationFrameListener()
bool frameStarted(const Ogre::FrameEvent &evt)
std::vector< SAnimTrack * > SAnimTrackList