SO3Engine
|
SO3NodeAnimationTrack.cpp
Go to the documentation of this file.
32SNodeAnimationTrack::SNodeAnimationTrack(const std::string& animationTrackName, SNodeAnimation* animation, const unsigned short& nodeTrackAnimationId) : SAnimTrack(animationTrackName, animation, SAnimTrack::SO3_NODE_TRACK)
34 ogreAnimationTrack = GetParentAnimation()->GetOgreAnimationPointer()->createNodeTrack(nodeTrackAnimationId, animation->GetParentNode()->GetOgreSceneNodePointer());
39 GetParentAnimation()->GetOgreAnimationPointer()->destroyNodeTrack(ogreAnimationTrack->getHandle());
47void SNodeAnimationTrack::CreateKey(const float& timepos, const Ogre::Vector3& pos, const Ogre::Quaternion& quat, const Ogre::Vector3& scale)
49 Ogre::NodeAnimationTrack* mTrack = static_cast <Ogre::NodeAnimationTrack*>(GetOgreAnimationTrackPointer());
60void SNodeAnimationTrack::SetKeyTransform(const unsigned int& keyIndex, const Ogre::Vector3& pos, const Ogre::Quaternion& quat, const Ogre::Vector3& scale)
62 Ogre::NodeAnimationTrack* mTrack = static_cast <Ogre::NodeAnimationTrack*> (GetOgreAnimationTrackPointer());
75void SNodeAnimationTrack::GetKeyTransform(const unsigned int& keyIndex, Ogre::Vector3& pos, Ogre::Quaternion& quat, Ogre::Vector3& scale)
81 Ogre::NodeAnimationTrack* mTrack = static_cast <Ogre::NodeAnimationTrack*> (GetOgreAnimationTrackPointer());
Ogre::Animation * GetOgreAnimationPointer()
Definition SO3Anim.cpp:115
Definition SO3AnimTrack.h:42
Ogre::AnimationTrack * ogreAnimationTrack
Definition SO3AnimTrack.h:53
virtual unsigned short GetNumKeyFrames()
Definition SO3AnimTrack.cpp:73
Ogre::AnimationTrack * GetOgreAnimationTrackPointer()
Definition SO3AnimTrack.cpp:58
Definition SO3NodeAnimation.h:41
virtual void SetKeyTransform(const unsigned int &keyIndex, const Ogre::Vector3 &pos, const Ogre::Quaternion &quat, const Ogre::Vector3 &scale)
Definition SO3NodeAnimationTrack.cpp:60
virtual void GetKeyTransform(const unsigned int &keyIndex, Ogre::Vector3 &pos, Ogre::Quaternion &quat, Ogre::Vector3 &scale)
Definition SO3NodeAnimationTrack.cpp:75
~SNodeAnimationTrack()
Definition SO3NodeAnimationTrack.cpp:37
virtual void RemoveAllKeyFrames()
Definition SO3NodeAnimationTrack.cpp:94
virtual void CreateKey(const float &timepos, const Ogre::Vector3 &pos, const Ogre::Quaternion &quat, const Ogre::Vector3 &scale)
Definition SO3NodeAnimationTrack.cpp:47
Ogre::SceneNode * GetOgreSceneNodePointer()
Definition SO3NodeScol.cpp:163
Definition SO3DataScol.h:38
Generated by 1.9.8