#include <OgrePose.h>
Public Types | |
typedef std::map< size_t, Vector3 > | VertexOffsetMap |
A collection of vertex offsets based on the vertex index. | |
typedef MapIterator < VertexOffsetMap > | VertexOffsetIterator |
An iterator over the vertex offsets. | |
typedef ConstMapIterator < VertexOffsetMap > | ConstVertexOffsetIterator |
An iterator over the vertex offsets. | |
Public Member Functions | |
Pose (ushort target, const String &name=StringUtil::BLANK) | |
Constructor. | |
virtual | ~Pose () |
const String & | getName (void) const |
Return the name of the pose (may be blank). | |
ushort | getTarget (void) const |
Return the target geometry index of the pose. | |
void | addVertex (size_t index, const Vector3 &offset) |
Adds an offset to a vertex for this pose. | |
void | removeVertex (size_t index) |
Remove a vertex offset. | |
void | clearVertexOffsets (void) |
Clear all vertex offsets. | |
ConstVertexOffsetIterator | getVertexOffsetIterator (void) const |
Gets an iterator over all the vertex offsets. | |
VertexOffsetIterator | getVertexOffsetIterator (void) |
Gets an iterator over all the vertex offsets. | |
const VertexOffsetMap & | getVertexOffsets (void) const |
Gets a const reference to the vertex offsets. | |
const HardwareVertexBufferSharedPtr & | _getHardwareVertexBuffer (size_t numVertices) const |
Get a hardware vertex buffer version of the vertex offsets. | |
Pose * | clone (void) const |
Clone this pose and create another one configured exactly the same way (only really useful for cloning holders of this class). | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
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 *) |
Protected Attributes | |
ushort | mTarget |
Target geometry index. | |
String | mName |
Optional name. | |
VertexOffsetMap | mVertexOffsetMap |
Primary storage, sparse vertex use. | |
HardwareVertexBufferSharedPtr | mBuffer |
Derived hardware buffer, covers all vertices. |
Definition at line 49 of file OgrePose.h.
typedef std::map<size_t, Vector3> Ogre::Pose::VertexOffsetMap |
Ogre::Pose::Pose | ( | ushort | target, | |
const String & | name = StringUtil::BLANK | |||
) |
Constructor.
target | The target vertexdata index (0 for shared, 1+ for dedicated at the submesh index + 1) | |
name | Optional name |
virtual Ogre::Pose::~Pose | ( | ) | [virtual] |
const String& Ogre::Pose::getName | ( | void | ) | const |
ushort Ogre::Pose::getTarget | ( | void | ) | const |
void Ogre::Pose::addVertex | ( | size_t | index, | |
const Vector3 & | offset | |||
) |
Adds an offset to a vertex for this pose.
index | The vertex index | |
offset | The position offset for this pose |
void Ogre::Pose::removeVertex | ( | size_t | index | ) |
Remove a vertex offset.
void Ogre::Pose::clearVertexOffsets | ( | void | ) |
Clear all vertex offsets.
ConstVertexOffsetIterator Ogre::Pose::getVertexOffsetIterator | ( | void | ) | const |
Gets an iterator over all the vertex offsets.
VertexOffsetIterator Ogre::Pose::getVertexOffsetIterator | ( | void | ) |
Gets an iterator over all the vertex offsets.
const VertexOffsetMap& Ogre::Pose::getVertexOffsets | ( | void | ) | const |
const HardwareVertexBufferSharedPtr& Ogre::Pose::_getHardwareVertexBuffer | ( | size_t | numVertices | ) | const |
Get a hardware vertex buffer version of the vertex offsets.
Pose* Ogre::Pose::clone | ( | void | ) | const |
Clone this pose and create another one configured exactly the same way (only really useful for cloning holders of this class).
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 84 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 89 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 106 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
ushort Ogre::Pose::mTarget [protected] |
String Ogre::Pose::mName [protected] |
VertexOffsetMap Ogre::Pose::mVertexOffsetMap [protected] |
HardwareVertexBufferSharedPtr Ogre::Pose::mBuffer [mutable, protected] |
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:05:11 2009