OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::SkeletonTrack Class Reference

#include <OgreSkeletonTrack.h>

+ Inheritance diagram for Ogre::SkeletonTrack:

Public Member Functions

 SkeletonTrack (uint32 boneBlockIdx, KfTransformArrayMemoryManager *kfTransformMemoryManager)
 
 ~SkeletonTrack ()
 
void _bakeUnusedSlots (void)
 Takes all KeyFrames and repeats the KfTransforms for every unused slot by a pattern based on the number of used slots.
 
KeyFrameRigVec_getKeyFrames (void)
 
void _setMaxUsedSlot (uint32 slot)
 
void addKeyFrame (Real timestamp, Real frameRate)
 
void applyKeyFrameRigAt (KeyFrameRigVec::const_iterator &inOutLastKnownKeyFrame, float frame, ArrayReal animWeight, const ArrayReal *RESTRICT_ALIAS perBoneWeights, const TransformArray &KfTransforms) const
 Applies the interpolated keyframe at the given frame to all bone transformations that are animated by this Track.
 
uint32 getBoneBlockIdx (void) const
 
void getKeyFrameRigAt (KeyFrameRigVec::const_iterator &inOutPrevFrame, KeyFrameRigVec::const_iterator &outNextFrame, Real frame) const
 
const KeyFrameRigVecgetKeyFrames (void) const
 
size_t getUsedSlots (void) const
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
voidoperator new (size_t sz, void *ptr)
 placement operator new
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
void setKeyFrameTransform (Real frame, uint32 slot, const Vector3 &vPos, const Quaternion &qRot, const Vector3 vScale)
 
void setNumKeyFrame (size_t numKeyFrames)
 

Constructor & Destructor Documentation

◆ SkeletonTrack()

Ogre::SkeletonTrack::SkeletonTrack ( uint32  boneBlockIdx,
KfTransformArrayMemoryManager kfTransformMemoryManager 
)

◆ ~SkeletonTrack()

Ogre::SkeletonTrack::~SkeletonTrack ( )

Member Function Documentation

◆ _bakeUnusedSlots()

void Ogre::SkeletonTrack::_bakeUnusedSlots ( void  )

Takes all KeyFrames and repeats the KfTransforms for every unused slot by a pattern based on the number of used slots.

Only useful when mUsedSlots <= (ARRAY_PACKED_REALS >> 1). Otherwise it does nothing.

◆ _getKeyFrames()

KeyFrameRigVec & Ogre::SkeletonTrack::_getKeyFrames ( void  )
inline

◆ _setMaxUsedSlot()

void Ogre::SkeletonTrack::_setMaxUsedSlot ( uint32  slot)
inline

◆ addKeyFrame()

void Ogre::SkeletonTrack::addKeyFrame ( Real  timestamp,
Real  frameRate 
)

◆ applyKeyFrameRigAt()

void Ogre::SkeletonTrack::applyKeyFrameRigAt ( KeyFrameRigVec::const_iterator inOutLastKnownKeyFrame,
float  frame,
ArrayReal  animWeight,
const ArrayReal *RESTRICT_ALIAS  perBoneWeights,
const TransformArray KfTransforms 
) const

Applies the interpolated keyframe at the given frame to all bone transformations that are animated by this Track.

Parameters
inOutLastKnownKeyFrame[in/out] Hint to this system on where to start next. If unknown (i.e. first call) set it to mKeyFrameRigs.begin() As output it will be set to the current keyframe, and should be used as input for the next call to keep keyframe searchs in constant time.
frame[in] Frame number, should be in range [0; mNumFrames]; if below zero the result will look like clamped to zero, if above mNumFrames, it result will look like clamped to mNumFrames
perBoneWeights[in] A list of per bone weights. The size of the array must be 1 (or more)
KfTransforms[out] An array with all bone transformations, sorted by parent level. The key frames are only applied to affected bones.

◆ getBoneBlockIdx()

uint32 Ogre::SkeletonTrack::getBoneBlockIdx ( void  ) const
inline

◆ getKeyFrameRigAt()

void Ogre::SkeletonTrack::getKeyFrameRigAt ( KeyFrameRigVec::const_iterator inOutPrevFrame,
KeyFrameRigVec::const_iterator outNextFrame,
Real  frame 
) const
inline

◆ getKeyFrames()

const KeyFrameRigVec & Ogre::SkeletonTrack::getKeyFrames ( void  ) const
inline

◆ getUsedSlots()

size_t Ogre::SkeletonTrack::getUsedSlots ( void  ) const
inline

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
void  
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

array operator new, with debug line info

◆ setKeyFrameTransform()

void Ogre::SkeletonTrack::setKeyFrameTransform ( Real  frame,
uint32  slot,
const Vector3 vPos,
const Quaternion qRot,
const Vector3  vScale 
)

◆ setNumKeyFrame()

void Ogre::SkeletonTrack::setNumKeyFrame ( size_t  numKeyFrames)

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