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, bool value, 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 AccT > | |
bool | isActiveAndCache (const Coord &ijk, const AccT &) const |
template<typename AccT > | |
bool | getValueAndCache (const Coord &ijk, const AccT &) const |
template<typename AccT > | |
void | setValueAndCache (const Coord &ijk, bool value, const AccT &) |
template<typename AccT > | |
void | setValueOnAndCache (const Coord &ijk, const AccT &) |
void | setValue (uint32_t n, bool value) |
void | setValue (const Coord &ijk, bool value) |
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 |
Mask< LOG2DIM > | mValues |
union nanovdb::build::LeafNode < bool >:: { ... } | |
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 1461 of file GridBuilder.h.
using nanovdb::build::LeafNode< bool >::BuildType = ValueMask |
Definition at line 1464 of file GridBuilder.h.
using nanovdb::build::LeafNode< bool >::LeafNodeType = LeafNode<BuildType> |
Definition at line 1465 of file GridBuilder.h.
using nanovdb::build::LeafNode< bool >::MaskIterT = typename Mask<LOG2DIM>::template Iterator<ON> |
Definition at line 1475 of file GridBuilder.h.
using nanovdb::build::LeafNode< bool >::NanoLeafT = typename NanoNode<BuildType, 0>::Type |
Definition at line 1476 of file GridBuilder.h.
using nanovdb::build::LeafNode< bool >::NodeMaskType = Mask<LOG2DIM> |
Definition at line 1473 of file GridBuilder.h.
using nanovdb::build::LeafNode< bool >::ValueType = bool |
Definition at line 1463 of file GridBuilder.h.
|
inline |
Definition at line 1542 of file GridBuilder.h.
|
delete |
|
delete |
|
default |
|
inline |
Definition at line 1539 of file GridBuilder.h.
|
inline |
Definition at line 1514 of file GridBuilder.h.
|
inline |
Definition at line 1498 of file GridBuilder.h.
|
inline |
Definition at line 1540 of file GridBuilder.h.
|
inline |
Definition at line 1515 of file GridBuilder.h.
|
inline |
Definition at line 1499 of file GridBuilder.h.
|
inlinestatic |
Return the linear offset corresponding to the given coordinate.
Definition at line 1560 of file GridBuilder.h.
|
inline |
Definition at line 1585 of file GridBuilder.h.
|
inline |
Definition at line 1586 of file GridBuilder.h.
|
inline |
Definition at line 1588 of file GridBuilder.h.
|
inline |
Definition at line 1589 of file GridBuilder.h.
|
inline |
Definition at line 1601 of file GridBuilder.h.
|
inline |
Definition at line 1556 of file GridBuilder.h.
|
inline |
Definition at line 1595 of file GridBuilder.h.
|
inline |
Definition at line 1574 of file GridBuilder.h.
|
inline |
Definition at line 1629 of file GridBuilder.h.
|
inline |
Definition at line 1579 of file GridBuilder.h.
|
inlinestatic |
Definition at line 1567 of file GridBuilder.h.
|
delete |
|
delete |
|
inline |
Definition at line 1557 of file GridBuilder.h.
|
inline |
Definition at line 1622 of file GridBuilder.h.
|
inline |
Definition at line 1627 of file GridBuilder.h.
|
inline |
Definition at line 1607 of file GridBuilder.h.
|
inline |
Definition at line 1615 of file GridBuilder.h.
|
inline |
Definition at line 1555 of file GridBuilder.h.
union { ... } |
|
static |
Definition at line 1468 of file GridBuilder.h.
|
static |
Definition at line 1471 of file GridBuilder.h.
|
static |
Definition at line 1466 of file GridBuilder.h.
|
static |
Definition at line 1470 of file GridBuilder.h.
NanoLeafT* nanovdb::build::LeafNode< bool >::mDstNode |
Definition at line 1481 of file GridBuilder.h.
uint64_t nanovdb::build::LeafNode< bool >::mDstOffset |
Definition at line 1482 of file GridBuilder.h.
Coord nanovdb::build::LeafNode< bool >::mOrigin |
Definition at line 1478 of file GridBuilder.h.
Mask<LOG2DIM> nanovdb::build::LeafNode< bool >::mValueMask |
Definition at line 1479 of file GridBuilder.h.
Mask<LOG2DIM> nanovdb::build::LeafNode< bool >::mValues |
Definition at line 1479 of file GridBuilder.h.
|
static |
Definition at line 1472 of file GridBuilder.h.
|
static |
Definition at line 1469 of file GridBuilder.h.
|
static |
Definition at line 1467 of file GridBuilder.h.