Project

General

Profile

SO3Engine
SO3::SSequenceAnimationTrack Class Reference

#include <SO3SequenceAnimationTrack.h>

Inheritance diagram for SO3::SSequenceAnimationTrack:
SO3::SAnimTrack SO3::SData

Public Member Functions

 SSequenceAnimationTrack (const std::string &animationTrackName, SSequenceAnimation *animation, const unsigned short &trackAnimationId)
 
 ~SSequenceAnimationTrack ()
 
SSequenceAnimationKeyAddKey (SAnim *anim, const float &length, const float &transition, const float &decaltime)
 
void SetKey (const unsigned int &index, const float &length, const float &transition, const float &decaltime)
 
void RemoveKey (SSequenceAnimationKey *key, const bool &reset)
 
SSequenceAnimationKeyGetKeyFromIndex (const unsigned int &index)
 
SAnimSequenceKeyList GetKeysFromAnim (SAnim *anim)
 
void RemoveKeysWithAnim (SAnim *anim, const bool &reset)
 
void SetLength (const float &length)
 
float GetLength ()
 
void EnableTrackKeys (const bool &enable)
 
bool MoveKeyFromIndex (const unsigned int &index, const unsigned int &newindex)
 
virtual unsigned short GetNumKeyFrames ()
 
virtual float GetKeyPositionTime (const unsigned int &keyIndex)
 
virtual void RemoveKey (const unsigned int &keyIndex)
 
virtual void RemoveAllKeyFrames ()
 
virtual void Update (const float &pos)
 
- Public Member Functions inherited from SO3::SAnimTrack
virtual ~SAnimTrack ()
 
SAnimGetParentAnimation ()
 
Ogre::AnimationTrack * GetOgreAnimationTrackPointer ()
 
AnimTrackType GetType ()
 
void SetOptimise ()
 
Ogre::AnimationTrack * _Clone (Ogre::Animation *tanim, const unsigned short &tid)
 
virtual void CreateKey (const float &timepos, const Ogre::Vector3 &pos, const Ogre::Quaternion &quat, const Ogre::Vector3 &scale)
 
virtual void SetKeyTransform (const unsigned int &keyIndex, const Ogre::Vector3 &pos, const Ogre::Quaternion &quat, const Ogre::Vector3 &scale)
 
virtual void GetKeyTransform (const unsigned int &keyIndex, Ogre::Vector3 &pos, Ogre::Quaternion &quat, Ogre::Vector3 &scale)
 
- Public Member Functions inherited from SO3::SData
 SData (const std::string &dataName)
 
virtual ~SData ()
 
std::string GetName () const
 
SUserObjectBindingsGetUserObjectBindings ()
 
const SUserObjectBindingsGetUserObjectBindings () const
 

Additional Inherited Members

- Public Types inherited from SO3::SAnimTrack
enum  AnimTrackType {
  SO3_NODE_TRACK = 0 , SO3_VERTEX_TRACK = 1 , SO3_NUMERIC_TRACK = 2 , SO3_POSE_TRACK = 3 ,
  SO3_SEQUENCE_TRACK = 4
}
 
- Protected Member Functions inherited from SO3::SAnimTrack
 SAnimTrack (const std::string &animationTrackName, SAnim *animation, const AnimTrackType &animationTrackType)
 
- Protected Attributes inherited from SO3::SAnimTrack
Ogre::AnimationTrack * ogreAnimationTrack
 
- Protected Attributes inherited from SO3::SData
std::string name
 

Detailed Description

Definition at line 34 of file SO3SequenceAnimationTrack.h.

Constructor & Destructor Documentation

◆ SSequenceAnimationTrack()

SO3::SSequenceAnimationTrack::SSequenceAnimationTrack ( const std::string &  animationTrackName,
SSequenceAnimation animation,
const unsigned short &  trackAnimationId 
)

Constructor for a SO3_SEQUENCE_TRACK anim track.

Definition at line 31 of file SO3SequenceAnimationTrack.cpp.

◆ ~SSequenceAnimationTrack()

SO3::SSequenceAnimationTrack::~SSequenceAnimationTrack ( )

Definition at line 36 of file SO3SequenceAnimationTrack.cpp.

Member Function Documentation

◆ AddKey()

SSequenceAnimationKey * SO3::SSequenceAnimationTrack::AddKey ( SAnim anim,
const float &  length,
const float &  transition,
const float &  decaltime 
)

Definition at line 52 of file SO3SequenceAnimationTrack.cpp.

◆ EnableTrackKeys()

void SO3::SSequenceAnimationTrack::EnableTrackKeys ( const bool &  enable)

Definition at line 187 of file SO3SequenceAnimationTrack.cpp.

◆ GetKeyFromIndex()

SSequenceAnimationKey * SO3::SSequenceAnimationTrack::GetKeyFromIndex ( const unsigned int &  index)

Definition at line 129 of file SO3SequenceAnimationTrack.cpp.

◆ GetKeyPositionTime()

float SO3::SSequenceAnimationTrack::GetKeyPositionTime ( const unsigned int &  keyIndex)
virtual

Reimplemented from SO3::SAnimTrack.

Definition at line 216 of file SO3SequenceAnimationTrack.cpp.

◆ GetKeysFromAnim()

SAnimSequenceKeyList SO3::SSequenceAnimationTrack::GetKeysFromAnim ( SAnim anim)

Definition at line 150 of file SO3SequenceAnimationTrack.cpp.

◆ GetLength()

float SO3::SSequenceAnimationTrack::GetLength ( )

Definition at line 182 of file SO3SequenceAnimationTrack.cpp.

◆ GetNumKeyFrames()

unsigned short SO3::SSequenceAnimationTrack::GetNumKeyFrames ( )
virtual

Reimplemented from SO3::SAnimTrack.

Definition at line 211 of file SO3SequenceAnimationTrack.cpp.

◆ MoveKeyFromIndex()

bool SO3::SSequenceAnimationTrack::MoveKeyFromIndex ( const unsigned int &  index,
const unsigned int &  newindex 
)

Definition at line 137 of file SO3SequenceAnimationTrack.cpp.

◆ RemoveAllKeyFrames()

void SO3::SSequenceAnimationTrack::RemoveAllKeyFrames ( )
virtual

Reimplemented from SO3::SAnimTrack.

Definition at line 238 of file SO3SequenceAnimationTrack.cpp.

◆ RemoveKey() [1/2]

void SO3::SSequenceAnimationTrack::RemoveKey ( const unsigned int &  keyIndex)
virtual

Reimplemented from SO3::SAnimTrack.

Definition at line 229 of file SO3SequenceAnimationTrack.cpp.

◆ RemoveKey() [2/2]

void SO3::SSequenceAnimationTrack::RemoveKey ( SSequenceAnimationKey key,
const bool &  reset 
)

Definition at line 91 of file SO3SequenceAnimationTrack.cpp.

◆ RemoveKeysWithAnim()

void SO3::SSequenceAnimationTrack::RemoveKeysWithAnim ( SAnim anim,
const bool &  reset 
)

Definition at line 165 of file SO3SequenceAnimationTrack.cpp.

◆ SetKey()

void SO3::SSequenceAnimationTrack::SetKey ( const unsigned int &  index,
const float &  length,
const float &  transition,
const float &  decaltime 
)

Definition at line 117 of file SO3SequenceAnimationTrack.cpp.

◆ SetLength()

void SO3::SSequenceAnimationTrack::SetLength ( const float &  length)

Definition at line 177 of file SO3SequenceAnimationTrack.cpp.

◆ Update()

void SO3::SSequenceAnimationTrack::Update ( const float &  pos)
virtual

Reimplemented from SO3::SAnimTrack.

Definition at line 251 of file SO3SequenceAnimationTrack.cpp.


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