HDK
|
Manages allocation/deletion of temporary vertex/points for a detail. More...
#include <GA_VertexPool.h>
Friends | |
class | GA_AttributeRefMap |
class | ga_VertexPoolProxy |
class | GEO_AttributeHandleList |
Manages allocation/deletion of temporary vertex/points for a detail.
This class stores a list of temporary points and vertices for a detail. The class is used by GA_WorkVertexBuffer and is referenced by handle lists.
Definition at line 35 of file GA_VertexPool.h.
GA_VertexPoolIndex GA_VertexPool::appendPoint | ( | ) |
Append a single point The method returns the offset in the pool (not the offset in the detail)
|
inline |
Append nvertex
vertices to the pool. The offsets are returned in the buffer provided.
Definition at line 109 of file GA_VertexPool.h.
GA_VertexPoolIndex GA_VertexPool::appendVertex | ( | GA_Offset | pt = GA_INVALID_OFFSET | ) |
Append a single vertex (with an optional point link) The method returns the offset in the pool (not the offset in the detail)
|
inline |
Append nvertex
vertices to the pool. The offsets are returned in the buffer provided.
Definition at line 97 of file GA_VertexPool.h.
|
inline |
Definition at line 138 of file GA_VertexPool.h.
|
inline |
Definition at line 139 of file GA_VertexPool.h.
|
inline |
Number of vertices in the vertex pool.
Definition at line 81 of file GA_VertexPool.h.
void GA_VertexPool::freePoint | ( | GA_VertexPoolIndex | index | ) |
Free a point. If the index is invalid (i.e. < 0), the free is silently skipped. Vertices should be free'd before points.
|
inline |
Free a list of points. Vertices should be free'd before points.
Definition at line 132 of file GA_VertexPool.h.
void GA_VertexPool::freeVertex | ( | GA_VertexPoolIndex | index | ) |
Free a vertex. If the index is invalid (i.e. < 0), the free is silently skipped.
|
inline |
Free a list of vertices.
Definition at line 121 of file GA_VertexPool.h.
|
inline |
Return the detail which holds the temporary vertices/points.
Definition at line 58 of file GA_VertexPool.h.
|
inline |
Definition at line 75 of file GA_VertexPool.h.
|
inline |
Look up the GA_Offset at the given index.
Definition at line 71 of file GA_VertexPool.h.
|
inline |
Return whether this pool is bound to a detail, and hence available for us.
Definition at line 53 of file GA_VertexPool.h.
|
inline |
If the vertex pool was constructed using a const detail, the pool will have made a copy of the detail and this method will return true.
Definition at line 65 of file GA_VertexPool.h.
Reserve memory for the given amount of vertices without changing the number of entries. Only has an effect if num_elems > entries().
void GA_VertexPool::rewireVertexPoint | ( | GA_VertexPoolIndex | index, |
GA_Offset | point | ||
) |
Rewire a single vertex to a new point link.
|
friend |
Definition at line 46 of file GA_VertexPool.h.
|
friend |
Definition at line 47 of file GA_VertexPool.h.
|
friend |
Definition at line 48 of file GA_VertexPool.h.