HDK
|
#include <GridBuilder.h>
Classes | |
class | ChildIterator |
struct | Tile |
class | TileIterator |
class | ValueIterator |
class | ValueOnIterator |
Public Types | |
using | ValueType = typename ChildT::ValueType |
using | BuildType = typename ChildT::BuildType |
using | ChildNodeType = ChildT |
using | LeafNodeType = typename ChildT::LeafNodeType |
using | MapT = std::map< Coord, Tile > |
Public Member Functions | |
Tile * | probeTile (const Coord &ijk) |
const Tile * | probeTile (const Coord &ijk) const |
ChildIterator | cbeginChild () const |
ChildIterator | cbeginChildOn () const |
ValueIterator | beginValue () |
ValueIterator | cbeginValueAll () const |
ValueOnIterator | beginValueOn () |
ValueOnIterator | cbeginValueOn () const |
TileIterator | beginTile () |
TileIterator | cbeginChildAll () const |
RootNode (const ValueType &background) | |
RootNode (const RootNode &)=delete | |
RootNode (RootNode &&)=default | |
RootNode & | operator= (const RootNode &)=delete |
RootNode & | operator= (RootNode &&)=default |
~RootNode () | |
uint32_t | tileCount () const |
uint32_t | getTableSize () const |
const ValueType & | background () const |
void | nodeCount (std::array< size_t, 3 > &count) const |
bool | empty () const |
void | clear () |
ValueType | getValue (const Coord &ijk) const |
ValueType | getValue (int i, int j, int k) const |
void | setValue (const Coord &ijk, const ValueType &value) |
template<typename AccT > | |
bool | isActiveAndCache (const Coord &ijk, AccT &acc) const |
template<typename AccT > | |
ValueType | getValueAndCache (const Coord &ijk, AccT &acc) const |
template<typename AccT > | |
void | setValueAndCache (const Coord &ijk, const ValueType &value, AccT &acc) |
template<typename AccT > | |
void | setValueOnAndCache (const Coord &ijk, AccT &acc) |
template<typename AccT > | |
void | touchLeafAndCache (const Coord &ijk, AccT &acc) |
template<typename NodeT > | |
uint32_t | nodeCount () const |
template<typename NodeT > | |
void | getNodes (std::vector< NodeT * > &array) |
void | addChild (ChildT *&child) |
template<uint32_t level> | |
void | addTile (const Coord &ijk, const ValueType &value, bool state) |
Add a tile containing voxel (i, j, k) at the specified tree level, creating a new branch if necessary. Delete any existing lower-level nodes that contain (x, y, z). More... | |
template<typename NodeT > | |
void | addNode (NodeT *&node) |
void | merge (RootNode &other) |
template<typename T > | |
std::enable_if < std::is_floating_point< T > ::value >::type | signedFloodFill (T outside) |
template<typename AccessorT > | |
const ChildT::ValueType & | getValueAndCache (const Coord &xyz, AccessorT &acc) const |
template<typename AccessorT > | |
ChildT::LeafNodeType * | touchLeafAndCache (const Coord &xyz, AccessorT &acc) |
Static Public Member Functions | |
static Coord | CoordToKey (const Coord &ijk) |
Public Attributes | |
MapT | mTable |
ValueType | mBackground |
Static Public Attributes | |
static constexpr uint32_t | LEVEL = 1 + ChildT::LEVEL |
Definition at line 48 of file GridBuilder.h.
using nanovdb::build::RootNode< ChildT >::BuildType = typename ChildT::BuildType |
Definition at line 51 of file GridBuilder.h.
using nanovdb::build::RootNode< ChildT >::ChildNodeType = ChildT |
Definition at line 52 of file GridBuilder.h.
using nanovdb::build::RootNode< ChildT >::LeafNodeType = typename ChildT::LeafNodeType |
Definition at line 53 of file GridBuilder.h.
using nanovdb::build::RootNode< ChildT >::MapT = std::map<Coord, Tile> |
Definition at line 65 of file GridBuilder.h.
using nanovdb::build::RootNode< ChildT >::ValueType = typename ChildT::ValueType |
Definition at line 50 of file GridBuilder.h.
|
inline |
Definition at line 226 of file GridBuilder.h.
|
delete |
|
default |
|
inline |
Definition at line 232 of file GridBuilder.h.
|
inline |
Definition at line 477 of file GridBuilder.h.
|
inline |
Definition at line 532 of file GridBuilder.h.
|
inline |
Add a tile containing voxel (i, j, k) at the specified tree level, creating a new branch if necessary. Delete any existing lower-level nodes that contain (x, y, z).
level | tree level at which the tile is inserted. Must be 1, 2 or 3. |
ijk | Index coordinate that map to the tile being inserted |
value | Value of the tile |
state | Binary state of the tile |
Definition at line 499 of file GridBuilder.h.
|
inline |
Definition at line 236 of file GridBuilder.h.
|
inline |
Definition at line 221 of file GridBuilder.h.
|
inline |
Definition at line 146 of file GridBuilder.h.
|
inline |
Definition at line 180 of file GridBuilder.h.
|
inline |
Definition at line 111 of file GridBuilder.h.
|
inline |
Definition at line 222 of file GridBuilder.h.
|
inline |
Definition at line 112 of file GridBuilder.h.
|
inline |
Definition at line 147 of file GridBuilder.h.
|
inline |
Definition at line 181 of file GridBuilder.h.
|
inline |
Definition at line 248 of file GridBuilder.h.
|
inlinestatic |
Definition at line 254 of file GridBuilder.h.
|
inline |
Definition at line 246 of file GridBuilder.h.
|
inline |
Definition at line 462 of file GridBuilder.h.
|
inline |
Definition at line 235 of file GridBuilder.h.
|
inline |
Definition at line 324 of file GridBuilder.h.
|
inline |
Definition at line 340 of file GridBuilder.h.
|
inline |
Definition at line 374 of file GridBuilder.h.
|
inline |
Definition at line 1739 of file RootNode.h.
|
inline |
Definition at line 361 of file GridBuilder.h.
|
inline |
Definition at line 553 of file GridBuilder.h.
|
inline |
Definition at line 238 of file GridBuilder.h.
|
inline |
Definition at line 445 of file GridBuilder.h.
|
delete |
|
default |
|
inline |
Definition at line 69 of file GridBuilder.h.
|
inline |
Definition at line 74 of file GridBuilder.h.
|
inline |
Definition at line 342 of file GridBuilder.h.
|
inline |
Definition at line 387 of file GridBuilder.h.
|
inline |
Definition at line 406 of file GridBuilder.h.
|
inline |
Definition at line 579 of file GridBuilder.h.
|
inline |
Definition at line 234 of file GridBuilder.h.
|
inline |
Definition at line 425 of file GridBuilder.h.
|
inline |
Definition at line 2776 of file RootNode.h.
|
static |
Definition at line 54 of file GridBuilder.h.
ValueType nanovdb::build::RootNode< ChildT >::mBackground |
Definition at line 67 of file GridBuilder.h.
MapT nanovdb::build::RootNode< ChildT >::mTable |
Definition at line 66 of file GridBuilder.h.