![]() |
NDEVR
API Documentation
|
A class to easily iterate each vertex of a Geometry. More...
Public Member Functions | |
| VertexLookup () | |
| Default constructor creating an empty lookup. | |
| VertexLookup (const StringView &vertex_property, Geometry geo) | |
| Constructs a lookup for a named custom vertex property. | |
| VertexLookup (VertexProperty vertex_property, Geometry geo) | |
| Constructs a lookup for a standard vertex property. | |
| BitFlag | flag (uint04 index) const |
| Retrieves the vertex flags at the given index. | |
| template<class t_type> | |
| t_type | get (uint04 index) const |
| Retrieves a vertex value at the given index. | |
| void | setFlag (uint04 index, const BitFlag &value) |
| Sets the flag value for a vertex, creating the flag column if necessary. | |
| template<class t_type> | |
| void | setVertex (uint04 index, const t_type &value) |
| Sets a vertex value at the given index. | |
| uint04 | size () const |
| Returns the number of vertices available for iteration. | |
| void | swap (uint04 a, uint04 b) |
| Swaps two vertex entries in the column. | |
Public Attributes | |
| TableColumn * | m_column |
| Pointer to the vertex data column. | |
| TableColumn * | m_flag_column |
| Pointer to the vertex flag column (may be nullptr). | |
| Geometry | m_geo |
| The geometry being iterated. | |
| uint04 | m_vertex_count |
| The number of vertices in this geometry. | |
| uint04 | m_vertex_offset |
| The offset of this geometry's vertices in the shared table. | |
| VertexProperty | m_vertex_property |
| The vertex property being accessed. | |
|
inline |
Constructs a lookup for a standard vertex property.
| [in] | vertex_property | The vertex property to iterate. |
| [in] | geo | The geometry to iterate over. |
Definition at line 2470 of file Geometry.h.
References m_column, m_flag_column, m_geo, m_vertex_count, m_vertex_offset, and m_vertex_property.
|
inline |
Constructs a lookup for a named custom vertex property.
| [in] | vertex_property | The property name. |
| [in] | geo | The geometry to iterate over. |
Definition at line 2483 of file Geometry.h.
References m_column, m_flag_column, m_geo, m_vertex_count, m_vertex_offset, and m_vertex_property.
Retrieves the vertex flags at the given index.
| [in] | index | The vertex index. |
Definition at line 2507 of file Geometry.h.
References flag(), m_flag_column, and m_vertex_offset.
Referenced by flag().
|
inline |
Retrieves a vertex value at the given index.
| [in] | index | The vertex index. |
Definition at line 2497 of file Geometry.h.
References m_column, and m_vertex_offset.
Referenced by VertexIterator< t_type >::operator[]().
Sets the flag value for a vertex, creating the flag column if necessary.
| [in] | index | The vertex index. |
| [in] | value | The BitFlag value to set. |
Definition at line 2535 of file Geometry.h.
References BitFlag, m_flag_column, m_geo, and m_vertex_offset.
Referenced by GridMesh< t_dims >::setupVertexTable().
|
inline |
Sets a vertex value at the given index.
| [in] | index | The vertex index. |
| [in] | value | The value to set. |
Definition at line 2527 of file Geometry.h.
References m_column, and m_vertex_offset.
Referenced by GridMesh< t_dims >::setupVertexTable().
|
inline |
Returns the number of vertices available for iteration.
Definition at line 2549 of file Geometry.h.
References m_vertex_count.
Swaps two vertex entries in the column.
| [in] | a | The first vertex index. |
| [in] | b | The second vertex index. |
Definition at line 2518 of file Geometry.h.
References m_column, and m_vertex_offset.