OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Ogre::SkeletonAnimationDef Class Reference

#include <OgreSkeletonAnimationDef.h>

+ Inheritance diagram for Ogre::SkeletonAnimationDef:
+ Collaboration diagram for Ogre::SkeletonAnimationDef:

Public Member Functions

 SkeletonAnimationDef ()
 
 ~SkeletonAnimationDef ()
 
void build (const Skeleton *skeleton, const Animation *animation, Real frameRate)
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
void setName (const String &name)
 

Protected Types

typedef map< size_t,
TimestampVec >::type 
TimestampsPerBlock
 
typedef vector< Real >::type TimestampVec
 

Protected Member Functions

void allocateCacheFriendlyKeyframes (const TimestampsPerBlock &timestampsByBlock, Real frameRate)
 Allocates enough memory in mKfTransformMemoryManager, creates all the mTracks (one per each entry in timestampsByBlock), and allocates all the keyframes from each track in a cache friendly manner, according to the usage pattern we'll be going to do. More...
 
uint32 blockIdxToSlotStart (uint32 blockIdx) const
 
uint32 slotToBlockIdx (uint32 slotIdx) const
 

Protected Attributes

map< IdString, size_t >::type mBoneToWeights
 Converts bone index to consecutive slot (. More...
 
KfTransformArrayMemoryManagermKfTransformMemoryManager
 
String mName
 
Real mNumFrames
 Number of frames. More...
 
Real mOriginalFrameRate
 
SkeletonTrackVec mTracks
 

Friends

class SkeletonAnimation
 

Detailed Description

Definition at line 37 of file OgreSkeletonAnimationDef.h.

Member Typedef Documentation

Definition at line 59 of file OgreSkeletonAnimationDef.h.

Definition at line 58 of file OgreSkeletonAnimationDef.h.

Constructor & Destructor Documentation

Ogre::SkeletonAnimationDef::SkeletonAnimationDef ( )
Ogre::SkeletonAnimationDef::~SkeletonAnimationDef ( )

Member Function Documentation

void Ogre::SkeletonAnimationDef::allocateCacheFriendlyKeyframes ( const TimestampsPerBlock timestampsByBlock,
Real  frameRate 
)
protected

Allocates enough memory in mKfTransformMemoryManager, creates all the mTracks (one per each entry in timestampsByBlock), and allocates all the keyframes from each track in a cache friendly manner, according to the usage pattern we'll be going to do.

Parameters
timestampsByBlockA map with block index as key; and as value an array of unique time stamps (a time stamp = one keyframe)
frameRateThe original recording framerate.
uint32 Ogre::SkeletonAnimationDef::blockIdxToSlotStart ( uint32  blockIdx) const
inlineprotected
void Ogre::SkeletonAnimationDef::build ( const Skeleton skeleton,
const Animation animation,
Real  frameRate 
)
template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

Definition at line 119 of file OgreMemoryAllocatedObject.h.

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

Definition at line 68 of file OgreMemoryAllocatedObject.h.

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

Definition at line 73 of file OgreMemoryAllocatedObject.h.

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

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

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

Definition at line 86 of file OgreMemoryAllocatedObject.h.

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

Definition at line 91 of file OgreMemoryAllocatedObject.h.

void Ogre::SkeletonAnimationDef::setName ( const String name)
inline

Definition at line 78 of file OgreSkeletonAnimationDef.h.

uint32 Ogre::SkeletonAnimationDef::slotToBlockIdx ( uint32  slotIdx) const
inlineprotected

Friends And Related Function Documentation

friend class SkeletonAnimation
friend

Definition at line 39 of file OgreSkeletonAnimationDef.h.

Member Data Documentation

map<IdString, size_t>::type Ogre::SkeletonAnimationDef::mBoneToWeights
protected

Converts bone index to consecutive slot (.

See also
SkeletonAnimation::mBoneWeights). The parent level depth is in the last 8 bits

Definition at line 50 of file OgreSkeletonAnimationDef.h.

KfTransformArrayMemoryManager* Ogre::SkeletonAnimationDef::mKfTransformMemoryManager
protected

Definition at line 53 of file OgreSkeletonAnimationDef.h.

String Ogre::SkeletonAnimationDef::mName
protected

Definition at line 51 of file OgreSkeletonAnimationDef.h.

Real Ogre::SkeletonAnimationDef::mNumFrames
protected

Number of frames.

May not equal the number of keyframes (i.e. remain stationary at the end for a long time).

Definition at line 45 of file OgreSkeletonAnimationDef.h.

Real Ogre::SkeletonAnimationDef::mOriginalFrameRate
protected

Definition at line 46 of file OgreSkeletonAnimationDef.h.

SkeletonTrackVec Ogre::SkeletonAnimationDef::mTracks
protected

Definition at line 41 of file OgreSkeletonAnimationDef.h.


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