#include <nanovdb/util/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 |
using | BuildType |
using | ValueType |
using | LeafNodeType |
using | NodeMaskType |
using | MaskIterT |
using | NanoLeafT |
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) |
ValueOnIterator | beginValueOn () |
ValueOnIterator | cbeginValueOn () const |
ValueOffIterator | beginValueOff () |
ValueOffIterator | cbeginValueOff () const |
ValueIterator | beginValue () |
ValueIterator | cbeginValueAll () const |
LeafNode (const Coord &ijk, const ValueType &value, bool state) | |
LeafNode (const LeafNode &)=delete | |
LeafNode (LeafNode &&)=delete | |
LeafNode & | operator= (const LeafNode &)=delete |
LeafNode & | operator= (LeafNode &&)=delete |
~LeafNode ()=default | |
const Mask< LOG2DIM > & | getValueMask () const |
const Mask< LOG2DIM > & | valueMask () const |
const Coord & | origin () const |
void | localToGlobalCoord (Coord &ijk) const |
Coord | offsetToGlobalCoord (uint32_t n) const |
ValueType | getFirstValue () const |
ValueType | getLastValue () const |
const ValueType & | getValue (uint32_t i) const |
const ValueType & | getValue (const Coord &ijk) const |
auto | get (const Coord &ijk, ArgsT &&... args) const |
auto | set (const Coord &ijk, ArgsT &&... args) |
const ValueType & | getValueAndCache (const Coord &ijk, const AccT &) const |
void | setValueAndCache (const Coord &ijk, const ValueType &value, const AccT &) |
void | setValueOnAndCache (const Coord &ijk, const AccT &) |
bool | isActiveAndCache (const Coord &ijk, const AccT &) const |
void | setValue (uint32_t n, const ValueType &value) |
void | setValue (const Coord &ijk, const ValueType &value) |
void | merge (LeafNode &other) |
std::enable_if< std::is_floating_point< T >::value >::type | signedFloodFill (T outside) |
Static Public Member Functions | |
static uint32_t | CoordToOffset (const Coord &ijk) |
Return the linear offset corresponding to the given coordinate. | |
static Coord | OffsetToLocalCoord (uint32_t n) |
static uint32_t | CoordToOffset (const Coord &ijk) |
Return the linear offset corresponding to the given coordinate. | |
static Coord | OffsetToLocalCoord (uint32_t n) |
Public Attributes | ||
Coord | mOrigin | |
Mask< LOG2DIM > | mValueMask | |
Mask< LOG2DIM > | mValues | |
union nanovdb::build::LeafNode< bool >:: { ... } | ||
Coord | mOrigin | |
Mask< LOG2DIM > | mValueMask | |
ValueType | mValues [SIZE] | |
NanoLeafT * | mDstNode | |
uint64_t | mDstOffset | |
union { | ||
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) |
static constexpr uint32_t | LOG2DIM |
static constexpr uint32_t | TOTAL |
static constexpr uint32_t | DIM |
static constexpr uint32_t | SIZE |
static constexpr uint32_t | MASK |
static constexpr uint32_t | LEVEL |
static constexpr uint64_t | NUM_VALUES |
using BuildType |
using LeafNodeType |
using LeafNodeType = LeafNode<BuildType> |
using MaskIterT |
using NanoLeafT |
using NodeMaskType |
using NodeMaskType = Mask<LOG2DIM> |
using ValueType |
using ValueType = bool |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Return the linear offset corresponding to the given coordinate.
|
inlinestatic |
Return the linear offset corresponding to the given coordinate.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
union nanovdb::build::LeafNode< bool > { ... } |
union { ... } |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
NanoLeafT* mDstNode |
NanoLeafT* mDstNode |
uint64_t mDstOffset |
uint64_t mDstOffset |
Coord mOrigin |
Coord mOrigin |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |
|
staticconstexpr |