SO3Engine
Public Member Functions | Protected Member Functions | List of all members
SO3::SPoseAnimation Class Reference

#include <SO3PoseAnimation.h>

Inheritance diagram for SO3::SPoseAnimation:
SO3::SAnim SO3::SData

Public Member Functions

 SPoseAnimation (SScene *scene, const std::string &animationName, SEntity *entity, const unsigned short &id, const unsigned short &poseHandle)
 
 ~SPoseAnimation ()
 
- 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)
 
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 ()
 
virtual void SetWeight (const float &weight)
 
virtual float GetWeight ()
 
- 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 SO3PoseAnimation.h.

Constructor & Destructor Documentation

◆ SPoseAnimation()

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

Create a new vertex anim for an entity.

Definition at line 41 of file SO3PoseAnimation.cpp.

◆ ~SPoseAnimation()

SPoseAnimation::~SPoseAnimation ( )

Destructor

Definition at line 63 of file SO3PoseAnimation.cpp.

Member Function Documentation

◆ _GetOgreAnimationState()

Ogre::AnimationState * SPoseAnimation::_GetOgreAnimationState ( )
protectedvirtual

Get the current Animation State Internal use only

Implements SO3::SAnim.

Definition at line 67 of file SO3PoseAnimation.cpp.

◆ GetWeight()

float SPoseAnimation::GetWeight ( )
protectedvirtual

Reimplemented from SO3::SAnim.

Definition at line 88 of file SO3PoseAnimation.cpp.

◆ SetWeight()

void SPoseAnimation::SetWeight ( const float &  weight)
protectedvirtual

Reimplemented from SO3::SAnim.

Definition at line 72 of file SO3PoseAnimation.cpp.


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