SO3Engine
|
SO3AnimTrack.cpp
Go to the documentation of this file.
38SAnimTrack::SAnimTrack(const std::string& animationTrackName, SAnim* animation, const AnimTrackType& animationTrackType) : SData(animationTrackName)
91void SAnimTrack::CreateKey(const float& timepos, const Ogre::Vector3& pos, const Ogre::Quaternion& quat, const Ogre::Vector3& scale)
95void SAnimTrack::SetKeyTransform(const unsigned int& keyIndex, const Ogre::Vector3& pos, const Ogre::Quaternion& quat, const Ogre::Vector3& scale)
99void SAnimTrack::GetKeyTransform(const unsigned int& keyIndex, Ogre::Vector3& pos, Ogre::Quaternion& quat, Ogre::Vector3& scale)
138 Ogre::NodeAnimationTrack* nodeTrack = static_cast<Ogre::NodeAnimationTrack*>(ogreAnimationTrack);
143 Ogre::TransformKeyFrame* nkey = static_cast<Ogre::NodeAnimationTrack*>(newAnimTrack)->createNodeKeyFrame(key->getTime());
153 Ogre::VertexAnimationTrack* vertexTrack = static_cast<Ogre::VertexAnimationTrack*>(ogreAnimationTrack);
154 newAnimTrack = tanim->createVertexTrack(tid, vertexTrack->getAssociatedVertexData(), vertexTrack->getAnimationType());
158 Ogre::VertexPoseKeyFrame* nkey = static_cast<Ogre::VertexAnimationTrack*>(newAnimTrack)->createVertexPoseKeyFrame(key->getTime());
171 Ogre::VertexAnimationTrack* vertexTrack = static_cast<Ogre::VertexAnimationTrack*>(ogreAnimationTrack);
172 newAnimTrack = tanim->createVertexTrack(tid, vertexTrack->getAssociatedVertexData(), vertexTrack->getAnimationType());
Definition SO3Anim.h:42
Ogre::AnimationTrack * _Clone(Ogre::Animation *tanim, const unsigned short &tid)
Definition SO3AnimTrack.cpp:129
Ogre::AnimationTrack * ogreAnimationTrack
Definition SO3AnimTrack.h:53
virtual unsigned short GetNumKeyFrames()
Definition SO3AnimTrack.cpp:73
virtual void GetKeyTransform(const unsigned int &keyIndex, Ogre::Vector3 &pos, Ogre::Quaternion &quat, Ogre::Vector3 &scale)
Definition SO3AnimTrack.cpp:99
virtual void RemoveKey(const unsigned int &keyIndex)
Definition SO3AnimTrack.cpp:119
virtual void SetKeyTransform(const unsigned int &keyIndex, const Ogre::Vector3 &pos, const Ogre::Quaternion &quat, const Ogre::Vector3 &scale)
Definition SO3AnimTrack.cpp:95
virtual float GetKeyPositionTime(const unsigned int &keyIndex)
Definition SO3AnimTrack.cpp:106
Ogre::AnimationTrack * GetOgreAnimationTrackPointer()
Definition SO3AnimTrack.cpp:58
virtual void CreateKey(const float &timepos, const Ogre::Vector3 &pos, const Ogre::Quaternion &quat, const Ogre::Vector3 &scale)
Definition SO3AnimTrack.cpp:91
Definition SO3DataScol.h:41
Definition SO3DataScol.h:38
Generated by 1.9.8