Project

General

Profile

SO3Engine
SO3::SVertexAnimation Class Reference

#include <SO3VertexAnimation.h>

Inheritance diagram for SO3::SVertexAnimation:
SO3::SAnim SO3::SData

Public Member Functions

 SVertexAnimation (SScene *scene, const std::string &animationName, SEntity *entity, const unsigned short &id)
 
 ~SVertexAnimation ()
 
- Public Member Functions inherited from SO3::SAnim
virtual ~SAnim ()
 
Ogre::Animation * GetOgreAnimationPointer ()
 
SNodeGetParentNode ()
 
SSceneGetParentScene ()
 
AnimType GetType ()
 
bool IsSequenceUpdated ()
 
void SetSequenceUpdated (const bool &value)
 
unsigned short GetIndex ()
 
SAnimTrackCreateAnimationTrack (const std::string &newAnimationTrackName)
 
void DeleteAnimationTrack (SAnimTrack *existingAnimationTrack)
 
unsigned short GetNumAnimationsTracks ()
 
SAnimTrackGetAnimationTrack (const unsigned short &index)
 
SAnimTrackList GetAnimationsTracks () const
 
void SetLength (const float &length)
 
float GetLength ()
 
virtual void SetTimePosition (const float &timePosition)
 
float GetTimePosition ()
 
void Apply (const float &timePosition)
 
virtual void SetWeight (const float &weight)
 
virtual float GetWeight ()
 
void SetInitialWeight (const float &weight)
 
float GetInitialWeight ()
 
void SetInitialLoop (const bool &loop)
 
bool GetInitialLoop ()
 
void SetInterpolationMode (const AnimInterpolationMode &interpolationMode)
 
AnimInterpolationMode GetInterpolationMode ()
 
void SetRotationInterpolationMode (const AnimRotationInterpolationMode &interpolationMode)
 
AnimRotationInterpolationMode GetRotationInterpolationMode ()
 
virtual void SetEnable (const bool &enable)
 
virtual bool GetEnable ()
 
void SetLoop (const bool &loop)
 
bool GetLoop ()
 
bool SkipFrame ()
 
void SetSkipFrame (const bool &state)
 
void SetOptimise (const bool &optimize)
 
void SetSpeed (const float &newSpeed)
 
float GetSpeed ()
 
bool HasEnded ()
 
void AddTime (const float &time)
 
void SetPaused (const bool &pauseState)
 
bool GetPaused ()
 
void Update (const Ogre::FrameEvent &evt)
 
virtual void _UpdateImpl (const Ogre::FrameEvent &evt)
 
- Public Member Functions inherited from SO3::SData
 SData (const std::string &dataName)
 
virtual ~SData ()
 
std::string GetName () const
 
SUserObjectBindingsGetUserObjectBindings ()
 
const SUserObjectBindingsGetUserObjectBindings () const
 

Protected Member Functions

virtual Ogre::AnimationState * _GetOgreAnimationState ()
 
- Protected Member Functions inherited from SO3::SAnim
 SAnim (SScene *scene, const std::string &animationName, SNode *animationAssociatedNode, const unsigned short &animationId, const AnimType &animationType)
 
void AddAnimationTrack (SAnimTrack *existingAnimationTrack)
 
void RemoveAnimationTrack (SAnimTrack *existingAnimationTrack)
 
virtual SAnimTrackCreateAnimationTrackImpl (const std::string &newAnimationTrackName)
 

Additional Inherited Members

- Public Types inherited from SO3::SAnim
enum  AnimType {
  SO3_UNKNOWN_ANIM = 0 , SO3_SCENENODE_ANIM = 1 , SO3_SKELETAL_ANIM = 2 , SO3_VERTEX_ANIM = 3 ,
  SO3_FAP_ANIM = 4 , SO3_POSE_ANIM = 5 , SO3_SEQUENCE_ANIM = 6
}
 
enum  AnimInterpolationMode { SO3_IM_LINEAR , SO3_IM_SPLINE }
 
enum  AnimRotationInterpolationMode { SO3_RIM_LINEAR , SO3_RIM_SPHERICAL }
 
- Protected Attributes inherited from SO3::SAnim
Ogre::Animation * ogreAnimation
 
SAnimTrackList animationTrackList
 
SScenemScene
 
- Protected Attributes inherited from SO3::SData
std::string name
 

Detailed Description

Definition at line 40 of file SO3VertexAnimation.h.

Constructor & Destructor Documentation

◆ SVertexAnimation()

SO3::SVertexAnimation::SVertexAnimation ( SScene scene,
const std::string &  animationName,
SEntity entity,
const unsigned short &  id 
)

Create a new vertex anim for an entity.

Definition at line 41 of file SO3VertexAnimation.cpp.

◆ ~SVertexAnimation()

SO3::SVertexAnimation::~SVertexAnimation ( )

Destructor

Definition at line 61 of file SO3VertexAnimation.cpp.

Member Function Documentation

◆ _GetOgreAnimationState()

Ogre::AnimationState * SO3::SVertexAnimation::_GetOgreAnimationState ( )
protectedvirtual

Get the current Animation State Internal use only

Implements SO3::SAnim.

Definition at line 65 of file SO3VertexAnimation.cpp.


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