HDK
|
#include <GridBuilder.h>
Classes | |
class | ValueIterator |
Visits all values in a leaf node, i.e. both active and inactive values. More... | |
class | ValueOffIterator |
Visits all inactive values in a leaf node. More... | |
class | ValueOnIterator |
Visits all active values in a leaf node. More... | |
Public Types | |
using | ValueType = bool |
using | BuildType = ValueMask |
using | LeafNodeType = LeafNode< BuildType > |
using | NodeMaskType = Mask< LOG2DIM > |
template<bool ON> | |
using | MaskIterT = typename Mask< LOG2DIM >::template Iterator< ON > |
using | NanoLeafT = typename NanoNode< BuildType, 0 >::Type |
Public Member Functions | |
ValueOnIterator | beginValueOn () |
ValueOnIterator | cbeginValueOn () const |
ValueOffIterator | beginValueOff () |
ValueOffIterator | cbeginValueOff () const |
ValueIterator | beginValue () |
ValueIterator | cbeginValueAll () const |
LeafNode (const Coord &ijk, const ValueType &, bool state) | |
LeafNode (const LeafNode &)=delete | |
LeafNode (LeafNode &&)=delete | |
LeafNode & | operator= (const LeafNode &)=delete |
LeafNode & | operator= (LeafNode &&)=delete |
~LeafNode ()=default | |
const Mask< LOG2DIM > & | valueMask () const |
const Mask< LOG2DIM > & | getValueMask () const |
const Coord & | origin () const |
void | localToGlobalCoord (Coord &ijk) const |
Coord | offsetToGlobalCoord (uint32_t n) const |
bool | getFirstValue () const |
bool | getLastValue () const |
bool | getValue (uint32_t i) const |
bool | getValue (const Coord &ijk) const |
template<typename OpT , typename... ArgsT> | |
auto | get (const Coord &ijk, ArgsT &&...args) const |
template<typename OpT , typename... ArgsT> | |
auto | set (const Coord &ijk, ArgsT &&...args) |
template<typename AccT > | |
bool | getValueAndCache (const Coord &ijk, const AccT &) const |
template<typename AccT > | |
void | setValueAndCache (const Coord &ijk, bool, const AccT &) |
template<typename AccT > | |
void | setValueOnAndCache (const Coord &ijk, const AccT &) |
template<typename AccT > | |
bool | isActiveAndCache (const Coord &ijk, const AccT &) const |
void | setValue (uint32_t n, bool) |
void | setValue (const Coord &ijk) |
void | merge (LeafNode &other) |
Static Public Member Functions | |
static uint32_t | CoordToOffset (const Coord &ijk) |
Return the linear offset corresponding to the given coordinate. More... | |
static Coord | OffsetToLocalCoord (uint32_t n) |
Public Attributes | |
Coord | mOrigin |
Mask< LOG2DIM > | mValueMask |
union nanovdb::build::LeafNode < ValueMask >:: { ... } | |
NanoLeafT * | mDstNode |
uint64_t | mDstOffset |
Static Public Attributes | |
static constexpr uint32_t | LOG2DIM = 3 |
static constexpr uint32_t | TOTAL = LOG2DIM |
static constexpr uint32_t | DIM = 1u << TOTAL |
static constexpr uint32_t | SIZE = 1u << 3 * LOG2DIM |
static constexpr uint32_t | MASK = DIM - 1 |
static constexpr uint32_t | LEVEL = 0 |
static constexpr uint64_t | NUM_VALUES = uint64_t(1) << (3 * TOTAL) |
Definition at line 1288 of file GridBuilder.h.
using nanovdb::build::LeafNode< ValueMask >::BuildType = ValueMask |
Definition at line 1291 of file GridBuilder.h.
using nanovdb::build::LeafNode< ValueMask >::LeafNodeType = LeafNode<BuildType> |
Definition at line 1292 of file GridBuilder.h.
using nanovdb::build::LeafNode< ValueMask >::MaskIterT = typename Mask<LOG2DIM>::template Iterator<ON> |
Definition at line 1302 of file GridBuilder.h.
using nanovdb::build::LeafNode< ValueMask >::NanoLeafT = typename NanoNode<BuildType, 0>::Type |
Definition at line 1303 of file GridBuilder.h.
using nanovdb::build::LeafNode< ValueMask >::NodeMaskType = Mask<LOG2DIM> |
Definition at line 1300 of file GridBuilder.h.
using nanovdb::build::LeafNode< ValueMask >::ValueType = bool |
Definition at line 1290 of file GridBuilder.h.
|
inline |
Definition at line 1369 of file GridBuilder.h.
|
delete |
|
delete |
|
default |
|
inline |
Definition at line 1366 of file GridBuilder.h.
|
inline |
Definition at line 1341 of file GridBuilder.h.
|
inline |
Definition at line 1325 of file GridBuilder.h.
|
inline |
Definition at line 1367 of file GridBuilder.h.
|
inline |
Definition at line 1342 of file GridBuilder.h.
|
inline |
Definition at line 1326 of file GridBuilder.h.
|
inlinestatic |
Return the linear offset corresponding to the given coordinate.
Definition at line 1386 of file GridBuilder.h.
|
inline |
Definition at line 1415 of file GridBuilder.h.
|
inline |
Definition at line 1409 of file GridBuilder.h.
|
inline |
Definition at line 1410 of file GridBuilder.h.
|
inline |
Definition at line 1411 of file GridBuilder.h.
|
inline |
Definition at line 1412 of file GridBuilder.h.
|
inline |
Definition at line 1422 of file GridBuilder.h.
|
inline |
Definition at line 1382 of file GridBuilder.h.
|
inline |
Definition at line 1442 of file GridBuilder.h.
|
inline |
Definition at line 1400 of file GridBuilder.h.
|
inline |
Definition at line 1451 of file GridBuilder.h.
|
inline |
Definition at line 1402 of file GridBuilder.h.
|
inlinestatic |
Definition at line 1393 of file GridBuilder.h.
|
delete |
|
delete |
|
inline |
Definition at line 1383 of file GridBuilder.h.
|
inline |
Definition at line 1418 of file GridBuilder.h.
|
inline |
Definition at line 1448 of file GridBuilder.h.
|
inline |
Definition at line 1449 of file GridBuilder.h.
|
inline |
Definition at line 1428 of file GridBuilder.h.
|
inline |
Definition at line 1435 of file GridBuilder.h.
|
inline |
Definition at line 1381 of file GridBuilder.h.
union { ... } |
|
static |
Definition at line 1295 of file GridBuilder.h.
|
static |
Definition at line 1298 of file GridBuilder.h.
|
static |
Definition at line 1293 of file GridBuilder.h.
|
static |
Definition at line 1297 of file GridBuilder.h.
NanoLeafT* nanovdb::build::LeafNode< ValueMask >::mDstNode |
Definition at line 1308 of file GridBuilder.h.
uint64_t nanovdb::build::LeafNode< ValueMask >::mDstOffset |
Definition at line 1309 of file GridBuilder.h.
Coord nanovdb::build::LeafNode< ValueMask >::mOrigin |
Definition at line 1305 of file GridBuilder.h.
Mask<LOG2DIM> nanovdb::build::LeafNode< ValueMask >::mValueMask |
Definition at line 1306 of file GridBuilder.h.
|
static |
Definition at line 1299 of file GridBuilder.h.
|
static |
Definition at line 1296 of file GridBuilder.h.
|
static |
Definition at line 1294 of file GridBuilder.h.