Internal nodes of a VDB treedim(),.
More...
#include <nanovdb/NanoVDB.h>
Inherits InternalData< ChildT, ChildT::LOG2DIM+1 >.
|
static constexpr bool | FIXED_SIZE = DataType::FIXED_SIZE |
|
static constexpr uint32_t | LOG2DIM = Log2Dim |
|
static constexpr uint32_t | TOTAL = LOG2DIM + ChildT::TOTAL |
|
static constexpr uint32_t | DIM = 1u << TOTAL |
|
static constexpr uint32_t | SIZE = 1u << (3 * LOG2DIM) |
|
static constexpr uint32_t | MASK = (1u << TOTAL) - 1u |
|
static constexpr uint32_t | LEVEL = 1 + ChildT::LEVEL |
|
static constexpr uint64_t | NUM_VALUES = uint64_t(1) << (3 * TOTAL) |
|
template<typename ChildT, uint32_t Log2Dim = ChildT::LOG2DIM + 1>
class nanovdb::InternalNode< ChildT, Log2Dim >
Internal nodes of a VDB treedim(),.
◆ BuildType
◆ ChildNodeType
◆ CoordType
◆ DataType
◆ FloatType
◆ LeafNodeType
◆ MaskType
◆ ValueType
◆ InternalNode() [1/2]
This class cannot be constructed or deleted.
◆ InternalNode() [2/2]
◆ ~InternalNode()
◆ average()
Return a const reference to the average of all the active values encoded in this internal node and any of its child nodes.
◆ bbox()
Return a const reference to the bounding box in index space of active values in this internal node and any of its child nodes.
◆ childMask()
Return a const reference to the bit mask of child nodes in this internal node.
◆ CoordToOffset()
static uint32_t CoordToOffset |
( |
const CoordType & |
ijk | ) |
|
|
inlinestatic |
Return the linear offset corresponding to the given coordinate.
◆ data() [1/2]
◆ data() [2/2]
◆ dim()
Return the dimension, in voxel units, of this internal node (typically 8*16 or 8*16*32)
◆ getValue()
Return the value of the given voxel.
◆ isActive() [1/2]
Retrun true if this node or any of its child nodes contain active values.
◆ isActive() [2/2]
◆ localToGlobalCoord()
void localToGlobalCoord |
( |
Coord & |
ijk | ) |
const |
|
inline |
modifies local coordinates to global coordinates of a tile or child node
◆ maximum()
Return a const reference to the maximum active value encoded in this internal node and any of its child nodes.
◆ memUsage()
static size_t memUsage |
( |
| ) |
|
|
inlinestatic |
Return memory usage in bytes for the class.
◆ minimum()
Return a const reference to the minimum active value encoded in this internal node and any of its child nodes.
◆ offsetToGlobalCoord()
Coord offsetToGlobalCoord |
( |
uint32_t |
n | ) |
const |
|
inline |
◆ OffsetToLocalCoord()
static Coord OffsetToLocalCoord |
( |
uint32_t |
n | ) |
|
|
inlinestatic |
- Returns
- the local coordinate of the n'th tile or child node
◆ operator=()
◆ origin()
Return the origin in index space of this leaf node.
◆ probeLeaf()
◆ probeValue()
◆ stdDeviation()
Return a const reference to the standard deviation of all the active values encoded in this internal node and any of its child nodes.
◆ valueMask()
Return a const reference to the bit mask of active voxels in this internal node.
◆ variance()
Return the variance of all the active values encoded in this internal node and any of its child nodes.
◆ InternalNode
◆ ReadAccessor
◆ RootNode
◆ DIM
constexpr uint32_t DIM = 1u << TOTAL |
|
staticconstexpr |
◆ FIXED_SIZE
constexpr bool FIXED_SIZE = DataType::FIXED_SIZE |
|
staticconstexpr |
◆ LEVEL
constexpr uint32_t LEVEL = 1 + ChildT::LEVEL |
|
staticconstexpr |
◆ LOG2DIM
constexpr uint32_t LOG2DIM = Log2Dim |
|
staticconstexpr |
◆ MASK
constexpr uint32_t MASK = (1u << TOTAL) - 1u |
|
staticconstexpr |
◆ NUM_VALUES
constexpr uint64_t NUM_VALUES = uint64_t(1) << (3 * TOTAL) |
|
staticconstexpr |
◆ SIZE
constexpr uint32_t SIZE = 1u << (3 * LOG2DIM) |
|
staticconstexpr |
◆ TOTAL
constexpr uint32_t TOTAL = LOG2DIM + ChildT::TOTAL |
|
staticconstexpr |