OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
A pose is a linked set of vertex offsets applying to one set of vertex data. More...
#include <OgrePose.h>
Public Types | |
typedef ConstMapIterator< NormalsMap > | ConstNormalsIterator |
An iterator over the vertex offsets. More... | |
typedef ConstMapIterator< VertexOffsetMap > | ConstVertexOffsetIterator |
An iterator over the vertex offsets. More... | |
typedef MapIterator< NormalsMap > | NormalsIterator |
An iterator over the vertex offsets. More... | |
typedef map< size_t, Vector3 >::type | NormalsMap |
A collection of normals based on the vertex index. More... | |
typedef MapIterator< VertexOffsetMap > | VertexOffsetIterator |
An iterator over the vertex offsets. More... | |
typedef map< size_t, Vector3 >::type | VertexOffsetMap |
A collection of vertex offsets based on the vertex index. More... | |
Public Member Functions | |
Pose (ushort target, const String &name=BLANKSTRING) | |
Constructor. More... | |
virtual | ~Pose () |
const HardwareVertexBufferSharedPtr & | _getHardwareVertexBuffer (const VertexData *origData) const |
Get a hardware vertex buffer version of the vertex offsets. More... | |
void | addVertex (size_t index, const Vector3 &offset) |
Adds an offset to a vertex for this pose. More... | |
void | addVertex (size_t index, const Vector3 &offset, const Vector3 &normal) |
Adds an offset to a vertex and a new normal for this pose. More... | |
void | clearVertices () |
Clear all vertices. More... | |
Pose * | clone () const |
Clone this pose and create another one configured exactly the same way (only really useful for cloning holders of this class). More... | |
bool | getIncludesNormals () const |
Return whether the pose vertices include normals. More... | |
const String & | getName () const |
Return the name of the pose (may be blank) More... | |
const NormalsMap & | getNormals () const |
Gets a const reference to the vertex offsets. More... | |
NormalsIterator | getNormalsIterator () |
Gets an iterator over all the vertex offsets. More... | |
ConstNormalsIterator | getNormalsIterator () const |
Gets an iterator over all the vertex offsets. More... | |
ushort | getTarget () const |
Return the target geometry index of the pose. More... | |
VertexOffsetIterator | getVertexOffsetIterator () |
Gets an iterator over all the vertex offsets. More... | |
ConstVertexOffsetIterator | getVertexOffsetIterator () const |
Gets an iterator over all the vertex offsets. More... | |
const VertexOffsetMap & | getVertexOffsets () const |
Gets a const reference to the vertex offsets. More... | |
void | removeVertex (size_t index) |
Remove a vertex offset. More... | |
A pose is a linked set of vertex offsets applying to one set of vertex data.
An iterator over the vertex offsets.
An iterator over the vertex offsets.
An iterator over the vertex offsets.
typedef map<size_t, Vector3>::type Ogre::v1::Pose::NormalsMap |
A collection of normals based on the vertex index.
An iterator over the vertex offsets.
typedef map<size_t, Vector3>::type Ogre::v1::Pose::VertexOffsetMap |
A collection of vertex offsets based on the vertex index.
Ogre::v1::Pose::Pose | ( | ushort | target, |
const String & | name = BLANKSTRING |
||
) |
Constructor.
target | The target vertexdata index (0 for shared, 1+ for dedicated at the submesh index + 1) |
name | Optional name |
|
virtual |
const HardwareVertexBufferSharedPtr& Ogre::v1::Pose::_getHardwareVertexBuffer | ( | const VertexData * | origData | ) | const |
Get a hardware vertex buffer version of the vertex offsets.
void Ogre::v1::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 |
Referenced by Ogre::VerticesRemapInfo::performPoseRemap().
Adds an offset to a vertex and a new normal for this pose.
index | The vertex index |
offset | The position offset for this pose |
void Ogre::v1::Pose::clearVertices | ( | ) |
Clear all vertices.
Referenced by Ogre::VerticesRemapInfo::performPoseRemap().
Pose* Ogre::v1::Pose::clone | ( | ) | const |
Clone this pose and create another one configured exactly the same way (only really useful for cloning holders of this class).
|
inline |
Return whether the pose vertices include normals.
Referenced by Ogre::VerticesRemapInfo::performPoseRemap().
|
inline |
Return the name of the pose (may be blank)
|
inline |
Gets a const reference to the vertex offsets.
Referenced by Ogre::VerticesRemapInfo::performPoseRemap().
NormalsIterator Ogre::v1::Pose::getNormalsIterator | ( | ) |
Gets an iterator over all the vertex offsets.
ConstNormalsIterator Ogre::v1::Pose::getNormalsIterator | ( | ) | const |
Gets an iterator over all the vertex offsets.
|
inline |
Return the target geometry index of the pose.
Referenced by Ogre::Lod0Stripifier::StripLod0Vertices().
VertexOffsetIterator Ogre::v1::Pose::getVertexOffsetIterator | ( | ) |
Gets an iterator over all the vertex offsets.
ConstVertexOffsetIterator Ogre::v1::Pose::getVertexOffsetIterator | ( | ) | const |
Gets an iterator over all the vertex offsets.
|
inline |
Gets a const reference to the vertex offsets.
Referenced by Ogre::VerticesRemapInfo::performPoseRemap().
void Ogre::v1::Pose::removeVertex | ( | size_t | index | ) |
Remove a vertex offset.