OpenVDB 10.0.1
|
Internal nodes of a VDB treedim(),. More...
#include <nanovdb/NanoVDB.h>
Classes | |
class | ChildIterator |
Visits child nodes of this node only. More... | |
class | ValueIterator |
Visits all tile values in this node, i.e. both inactive and active tiles. More... | |
class | ValueOnIterator |
Visits active tile values of this node only. More... | |
Public Types | |
using | DataType = InternalData< ChildT, Log2Dim > |
using | ValueType = typename DataType::ValueT |
using | FloatType = typename DataType::StatsT |
using | BuildType = typename DataType::BuildT |
using | LeafNodeType = typename ChildT::LeafNodeType |
using | ChildNodeType = ChildT |
using | CoordType = typename ChildT::CoordType |
template<uint32_t LOG2> | |
using | MaskType = typename ChildT::template MaskType< LOG2 > |
template<bool On> | |
using | MaskIterT = typename Mask< Log2Dim >::template Iterator< On > |
Public Member Functions | |
ChildIterator | beginChild () const |
ValueIterator | beginValue () const |
ValueOnIterator | beginValueOn () const |
InternalNode ()=delete | |
This class cannot be constructed or deleted. | |
InternalNode (const InternalNode &)=delete | |
InternalNode & | operator= (const InternalNode &)=delete |
~InternalNode ()=delete | |
DataType * | data () |
const DataType * | data () const |
const MaskType< LOG2DIM > & | valueMask () const |
Return a const reference to the bit mask of active voxels in this internal node. | |
const MaskType< LOG2DIM > & | childMask () const |
Return a const reference to the bit mask of child nodes in this internal node. | |
CoordType | origin () const |
Return the origin in index space of this leaf node. | |
const ValueType & | minimum () const |
Return a const reference to the minimum active value encoded in this internal node and any of its child nodes. | |
const ValueType & | maximum () const |
Return a const reference to the maximum active value encoded in this internal node and any of its child nodes. | |
const FloatType & | average () const |
Return a const reference to the average of all the active values encoded in this internal node and any of its child nodes. | |
FloatType | variance () const |
Return the variance of all the active values encoded in this internal node and any of its child nodes. | |
const FloatType & | stdDeviation () const |
Return a const reference to the standard deviation of all the active values encoded in this internal node and any of its child nodes. | |
const BBox< CoordType > & | bbox () const |
Return a const reference to the bounding box in index space of active values in this internal node and any of its child nodes. | |
ValueType | getValue (const CoordType &ijk) const |
Return the value of the given voxel. | |
bool | isActive (const CoordType &ijk) const |
bool | probeValue (const CoordType &ijk, ValueType &v) const |
return the state and updates the value of the specified voxel | |
const LeafNodeType * | probeLeaf (const CoordType &ijk) const |
const ChildNodeType * | probeChild (const CoordType &ijk) const |
void | localToGlobalCoord (Coord &ijk) const |
modifies local coordinates to global coordinates of a tile or child node | |
Coord | offsetToGlobalCoord (uint32_t n) const |
bool | isActive () const |
Return true if this node or any of its child nodes contain active values. | |
Static Public Member Functions | |
static uint32_t | dim () |
Return the dimension, in voxel units, of this internal node (typically 8*16 or 8*16*32) | |
static size_t | memUsage () |
Return memory usage in bytes for the class. | |
static uint32_t | CoordToOffset (const CoordType &ijk) |
Return the linear offset corresponding to the given coordinate. | |
static Coord | OffsetToLocalCoord (uint32_t n) |
Static Public Attributes | |
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) |
Private Member Functions | |
ValueT | getValue (uint32_t n) const |
bool | isActive (uint32_t n) const |
Friends | |
template<typename , int , int , int > | |
class | ReadAccessor |
template<typename > | |
class | RootNode |
template<typename , uint32_t > | |
class | InternalNode |
Internal nodes of a VDB treedim(),.
using ChildNodeType = ChildT |
using DataType = InternalData<ChildT, Log2Dim> |
using LeafNodeType = typename ChildT::LeafNodeType |
|
delete |
This class cannot be constructed or deleted.
|
delete |
|
delete |
Return a const reference to the average of all the active values encoded in this internal node and any of its child nodes.
Return a const reference to the bounding box in index space of active values in this internal node and any of its child nodes.
|
inline |
|
inline |
|
inline |
Return a const reference to the bit mask of child nodes in this internal node.
Return the linear offset corresponding to the given coordinate.
Return the dimension, in voxel units, of this internal node (typically 8*16 or 8*16*32)
Return true if this node or any of its child nodes contain active values.
modifies local coordinates to global coordinates of a tile or child node
Return a const reference to the maximum active value encoded in this internal node and any of its child nodes.
Return a const reference to the minimum active value encoded in this internal node and any of its child nodes.
|
delete |
|
inline |
Return the origin in index space of this leaf node.
|
inline |
|
inline |
return the state and updates the value of the specified voxel
Return a const reference to the standard deviation of all the active values encoded in this internal node and any of its child nodes.
Return a const reference to the bit mask of active voxels in this internal node.
|
inline |
Return the variance of all the active values encoded in this internal node and any of its child nodes.
|
friend |
|
friend |