SO3Engine
|
SO3SequenceAnimationTrack.cpp
Go to the documentation of this file.
31SSequenceAnimationTrack::SSequenceAnimationTrack(const std::string& animationTrackName, SSequenceAnimation* animation, const unsigned short& trackAnimationId) : SAnimTrack(animationTrackName, animation, SAnimTrack::SO3_SEQUENCE_TRACK)
48SSequenceAnimationTrack::SSequenceAnimationTrack() : SAnimTrack("", 0, SAnimTrack::SO3_NODE_TRACK)
52SSequenceAnimationKey* SSequenceAnimationTrack::AddKey(SAnim* anim, const float& length, const float& transtime, const float& decaltime)
58 SSequenceAnimationKey* key = new SSequenceAnimationKey(anim, GetLength() - transtime + decaltime, length, transtime, decaltime);
117void SSequenceAnimationTrack::SetKey(const unsigned int& index, const float& length, const float& transition, const float& decaltime)
137bool SSequenceAnimationTrack::MoveKeyFromIndex(const unsigned int& index, const unsigned int& newindex)
411 prevkey->GetAnim()->SetWeight(GetParentAnimation()->GetWeight() * prevkey->GetAnim()->GetInitialWeight() * (1.0f - transStep));
Definition SO3Anim.h:42
virtual void SetTimePosition(const float &timePosition)
Definition SO3Anim.cpp:214
Definition SO3AnimTrack.h:42
void SetUsed(const bool &state)
Definition SO3SequenceAnimationKey.cpp:96
void SetLength(const float &length)
Definition SO3SequenceAnimationKey.cpp:71
void SetTransitionTime(const float &transtime)
Definition SO3SequenceAnimationKey.cpp:81
void SetDecalTime(const float &decaltime)
Definition SO3SequenceAnimationKey.cpp:91
float GetTransitionTime()
Definition SO3SequenceAnimationKey.cpp:76
~SSequenceAnimationTrack()
Definition SO3SequenceAnimationTrack.cpp:36
float GetLength()
Definition SO3SequenceAnimationTrack.cpp:182
virtual float GetKeyPositionTime(const unsigned int &keyIndex)
Definition SO3SequenceAnimationTrack.cpp:216
SSequenceAnimationKey * GetKeyFromIndex(const unsigned int &index)
Definition SO3SequenceAnimationTrack.cpp:129
void EnableTrackKeys(const bool &enable)
Definition SO3SequenceAnimationTrack.cpp:187
void RemoveKey(SSequenceAnimationKey *key, const bool &reset)
Definition SO3SequenceAnimationTrack.cpp:91
SAnimSequenceKeyList GetKeysFromAnim(SAnim *anim)
Definition SO3SequenceAnimationTrack.cpp:150
SSequenceAnimationKey * AddKey(SAnim *anim, const float &length, const float &transition, const float &decaltime)
Definition SO3SequenceAnimationTrack.cpp:52
virtual void Update(const float &pos)
Definition SO3SequenceAnimationTrack.cpp:251
void RemoveKeysWithAnim(SAnim *anim, const bool &reset)
Definition SO3SequenceAnimationTrack.cpp:165
bool MoveKeyFromIndex(const unsigned int &index, const unsigned int &newindex)
Definition SO3SequenceAnimationTrack.cpp:137
virtual void RemoveAllKeyFrames()
Definition SO3SequenceAnimationTrack.cpp:238
void SetLength(const float &length)
Definition SO3SequenceAnimationTrack.cpp:177
virtual unsigned short GetNumKeyFrames()
Definition SO3SequenceAnimationTrack.cpp:211
void SetKey(const unsigned int &index, const float &length, const float &transition, const float &decaltime)
Definition SO3SequenceAnimationTrack.cpp:117
Definition SO3DataScol.h:38
std::vector< SSequenceAnimationKey * > SAnimSequenceKeyList
Definition SO3Prerequisites.h:280
Generated by 1.9.8