Project

General

Profile

SO3Engine

#include <SO3AnimTrack.h>

Inheritance diagram for SO3::SAnimTrack:
SO3::SData SO3::SNodeAnimationTrack SO3::SPoseAnimationTrack SO3::SSequenceAnimationTrack SO3::SSkeletonAnimationTrack SO3::SVertexAnimationTrack

Public Types

enum  AnimTrackType {
  SO3_NODE_TRACK = 0 , SO3_VERTEX_TRACK = 1 , SO3_NUMERIC_TRACK = 2 , SO3_POSE_TRACK = 3 ,
  SO3_SEQUENCE_TRACK = 4
}
 

Public Member Functions

virtual ~SAnimTrack ()
 
SAnimGetParentAnimation ()
 
Ogre::AnimationTrack * GetOgreAnimationTrackPointer ()
 
AnimTrackType GetType ()
 
void SetOptimise ()
 
Ogre::AnimationTrack * _Clone (Ogre::Animation *tanim, const unsigned short &tid)
 
virtual unsigned short GetNumKeyFrames ()
 
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)
 
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::SData
 SData (const std::string &dataName)
 
virtual ~SData ()
 
std::string GetName () const
 
SUserObjectBindingsGetUserObjectBindings ()
 
const SUserObjectBindingsGetUserObjectBindings () const
 

Protected Member Functions

 SAnimTrack (const std::string &animationTrackName, SAnim *animation, const AnimTrackType &animationTrackType)
 

Protected Attributes

Ogre::AnimationTrack * ogreAnimationTrack
 
- Protected Attributes inherited from SO3::SData
std::string name
 

Detailed Description

Definition at line 41 of file SO3AnimTrack.h.

Member Enumeration Documentation

◆ AnimTrackType

Enumerator
SO3_NODE_TRACK 
SO3_VERTEX_TRACK 
SO3_NUMERIC_TRACK 
SO3_POSE_TRACK 
SO3_SEQUENCE_TRACK 

Definition at line 44 of file SO3AnimTrack.h.

Constructor & Destructor Documentation

◆ ~SAnimTrack()

SO3::SAnimTrack::~SAnimTrack ( )
virtual

Definition at line 52 of file SO3AnimTrack.cpp.

◆ SAnimTrack()

SO3::SAnimTrack::SAnimTrack ( const std::string &  animationTrackName,
SAnim animation,
const AnimTrackType animationTrackType 
)
protected

Constructor for a anim track.

Definition at line 38 of file SO3AnimTrack.cpp.

Member Function Documentation

◆ _Clone()

Ogre::AnimationTrack * SO3::SAnimTrack::_Clone ( Ogre::Animation *  tanim,
const unsigned short &  tid 
)

Definition at line 129 of file SO3AnimTrack.cpp.

◆ CreateKey()

void SO3::SAnimTrack::CreateKey ( const float &  timepos,
const Ogre::Vector3 &  pos,
const Ogre::Quaternion &  quat,
const Ogre::Vector3 &  scale 
)
virtual

Reimplemented in SO3::SNodeAnimationTrack.

Definition at line 91 of file SO3AnimTrack.cpp.

◆ GetKeyPositionTime()

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

Reimplemented in SO3::SSequenceAnimationTrack.

Definition at line 106 of file SO3AnimTrack.cpp.

◆ GetKeyTransform()

void SO3::SAnimTrack::GetKeyTransform ( const unsigned int &  keyIndex,
Ogre::Vector3 &  pos,
Ogre::Quaternion &  quat,
Ogre::Vector3 &  scale 
)
virtual

Reimplemented in SO3::SNodeAnimationTrack.

Definition at line 99 of file SO3AnimTrack.cpp.

◆ GetNumKeyFrames()

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

Reimplemented in SO3::SSequenceAnimationTrack.

Definition at line 73 of file SO3AnimTrack.cpp.

◆ GetOgreAnimationTrackPointer()

Ogre::AnimationTrack * SO3::SAnimTrack::GetOgreAnimationTrackPointer ( )

Definition at line 58 of file SO3AnimTrack.cpp.

◆ GetParentAnimation()

SAnim * SO3::SAnimTrack::GetParentAnimation ( )

Definition at line 68 of file SO3AnimTrack.cpp.

◆ GetType()

SAnimTrack::AnimTrackType SO3::SAnimTrack::GetType ( )

Definition at line 63 of file SO3AnimTrack.cpp.

◆ RemoveAllKeyFrames()

void SO3::SAnimTrack::RemoveAllKeyFrames ( )
virtual

Reimplemented in SO3::SNodeAnimationTrack, and SO3::SSequenceAnimationTrack.

Definition at line 125 of file SO3AnimTrack.cpp.

◆ RemoveKey()

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

Reimplemented in SO3::SSequenceAnimationTrack.

Definition at line 119 of file SO3AnimTrack.cpp.

◆ SetKeyTransform()

void SO3::SAnimTrack::SetKeyTransform ( const unsigned int &  keyIndex,
const Ogre::Vector3 &  pos,
const Ogre::Quaternion &  quat,
const Ogre::Vector3 &  scale 
)
virtual

Reimplemented in SO3::SNodeAnimationTrack.

Definition at line 95 of file SO3AnimTrack.cpp.

◆ SetOptimise()

void SO3::SAnimTrack::SetOptimise ( )

Definition at line 81 of file SO3AnimTrack.cpp.

◆ Update()

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

Reimplemented in SO3::SSequenceAnimationTrack.

Definition at line 87 of file SO3AnimTrack.cpp.

Member Data Documentation

◆ ogreAnimationTrack

Ogre::AnimationTrack* SO3::SAnimTrack::ogreAnimationTrack
protected

Definition at line 53 of file SO3AnimTrack.h.


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