HDK
|
Generic UT_Vector3Array based accessor for UT_PointGrid. More...
#include <UT_PointGrid.h>
Public Types | |
typedef INDEX | indextype |
typedef KEY | keytype |
Public Member Functions | |
UT_PointGridVector3ArrayAccessor (const UT_Vector3Array &positions, const UT_ValArray< keytype > &keys, const UT_BitArray *valid=NULL) | |
indextype | entries () const |
Returns the number of points. More... | |
UT_Vector3 | getPos (indextype idx) const |
Returns the position for a given index. More... | |
keytype | getKey (indextype idx) const |
Gets the key for a given index. More... | |
exint | maxKeyValue () const |
int64 | getMemoryUsage () const |
void | build () |
Static Public Attributes | |
static const keytype | INVALIDKEY = std::numeric_limits<KEY>::max() |
Invalid key value. More... | |
Protected Attributes | |
const UT_Vector3Array & | myV3Array |
const UT_ValArray< keytype > & | myKeyArray |
const UT_BitArray * | myValidArray |
Generic UT_Vector3Array based accessor for UT_PointGrid.
This class provides the required functions to serve as an accessor for building a UT_PointGrid over the points provided in the UT_Vector3Array passed to the constructor. See GEO_PointGrid for an accessor over the points in a GEO_Detail.
Definition at line 296 of file UT_PointGrid.h.
typedef INDEX UT_PointGridVector3ArrayAccessor< INDEX, KEY >::indextype |
Definition at line 300 of file UT_PointGrid.h.
typedef KEY UT_PointGridVector3ArrayAccessor< INDEX, KEY >::keytype |
Definition at line 301 of file UT_PointGrid.h.
|
inline |
Create an accessor for the provided array of positions and keys.
Definition at line 309 of file UT_PointGrid.h.
|
inline |
Definition at line 354 of file UT_PointGrid.h.
|
inline |
Returns the number of points.
Definition at line 322 of file UT_PointGrid.h.
|
inline |
Gets the key for a given index.
Definition at line 334 of file UT_PointGrid.h.
|
inline |
Definition at line 348 of file UT_PointGrid.h.
|
inline |
Returns the position for a given index.
Definition at line 328 of file UT_PointGrid.h.
|
inline |
Returns the maximum possible key value, used by UT_PointGrid::canBuild().
Definition at line 343 of file UT_PointGrid.h.
|
static |
Invalid key value.
Definition at line 304 of file UT_PointGrid.h.
|
protected |
Definition at line 358 of file UT_PointGrid.h.
|
protected |
Definition at line 357 of file UT_PointGrid.h.
|
protected |
Definition at line 359 of file UT_PointGrid.h.