Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
const String & getName(void) const
Return the name of the pose (may be blank)
ConstNormalsIterator getNormalsIterator(void) const
Gets an iterator over all the vertex offsets.
ConstMapIterator< VertexOffsetMap > ConstVertexOffsetIterator
An iterator over the vertex offsets.
Pose(ushort target, const String &name=StringUtil::BLANK)
Constructor.
const HardwareVertexBufferSharedPtr & _getHardwareVertexBuffer(const VertexData *origData) const
Get a hardware vertex buffer version of the vertex offsets.
ConstMapIterator< NormalsMap > ConstNormalsIterator
An iterator over the vertex offsets.
void clearVertices(void)
Clear all vertices.
String mName
Optional name.
void addVertex(size_t index, const Vector3 &offset, const Vector3 &normal)
Adds an offset to a vertex and a new normal for this pose.
map< size_t, Vector3 >::type NormalsMap
A collection of normals based on the vertex index.
void removeVertex(size_t index)
Remove a vertex offset.
VertexOffsetIterator getVertexOffsetIterator(void)
Gets an iterator over all the vertex offsets.
A pose is a linked set of vertex offsets applying to one set of vertex data.
VertexOffsetMap mVertexOffsetMap
Primary storage, sparse vertex use.
MapIterator< NormalsMap > NormalsIterator
An iterator over the vertex offsets.
Summary class collecting together vertex source information.
const VertexOffsetMap & getVertexOffsets(void) const
Gets a const reference to the vertex offsets.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
vector< Pose * >::type PoseList
NormalsIterator getNormalsIterator(void)
Gets an iterator over all the vertex offsets.
Shared pointer implementation used to share vertex buffers.
ushort getTarget(void) const
Return the target geometry index of the pose.
Concrete IteratorWrapper for nonconst access to the underlying key-value container.
ConstVertexOffsetIterator getVertexOffsetIterator(void) const
Gets an iterator over all the vertex offsets.
Pose * clone(void) const
Clone this pose and create another one configured exactly the same way (only really useful for clonin...
HardwareVertexBufferSharedPtr mBuffer
Derived hardware buffer, covers all vertices.
bool getIncludesNormals() const
Return whether the pose vertices include normals.
MapIterator< VertexOffsetMap > VertexOffsetIterator
An iterator over the vertex offsets.
Concrete IteratorWrapper for const access to the underlying key-value container.
NormalsMap mNormalsMap
Primary storage, sparse vertex use.
ushort mTarget
Target geometry index.
Standard 3-dimensional vector.
void addVertex(size_t index, const Vector3 &offset)
Adds an offset to a vertex for this pose.
map< size_t, Vector3 >::type VertexOffsetMap
A collection of vertex offsets based on the vertex index.
const NormalsMap & getNormals(void) const
Gets a const reference to the vertex offsets.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.