VDB Tree, which is a thin wrapper around a RootNode.
More...
#include <nanovdb/NanoVDB.h>
Inherits TreeData< RootT::LEVEL >.
|
static uint64_t | memUsage () |
| return memory usage in bytes for the class More...
|
|
template<typename RootT>
class nanovdb::Tree< RootT >
VDB Tree, which is a thin wrapper around a RootNode.
◆ AccessorType
◆ BuildType
◆ CoordType
◆ DataType
◆ LeafNodeType
◆ Node0
◆ Node1
using Node1 = typename Node2::ChildNodeType |
◆ Node2
using Node2 = typename RootT::ChildNodeType |
◆ Node3
◆ RootType
◆ ValueType
◆ Tree() [1/2]
This class cannot be constructed or deleted.
◆ Tree() [2/2]
◆ ~Tree()
◆ activeTileCount()
const uint32_t & activeTileCount |
( |
uint32_t |
n | ) |
const |
|
inline |
Return the total number of active tiles at the specified level of the tree.
n = 0 corresponds to leaf level tiles.
◆ activeVoxelCount()
uint64_t activeVoxelCount |
( |
| ) |
const |
|
inline |
Return the total number of active voxels in this tree.
◆ background()
Return a const reference to the background value.
◆ bbox()
Return a const reference to the index bounding box of all the active values in this tree, i.e. in all nodes of the tree.
◆ data() [1/2]
◆ data() [2/2]
◆ extrema()
Sets the extrema values of all the active values in this tree, i.e. in all nodes of the tree.
◆ getAccessor()
◆ getFirstNode() [1/4]
return a pointer to the first node of the specified type
- Warning
- Note it may return NULL if no nodes exist
◆ getFirstNode() [2/4]
NodeTrait< RootT, LEVEL >::type * getFirstNode |
( |
| ) |
|
|
inline |
return a pointer to the first node at the specified level
- Warning
- Note it may return NULL if no nodes exist
◆ getFirstNode() [3/4]
const NodeT * getFirstNode |
( |
| ) |
const |
|
inline |
return a const pointer to the first node of the specified type
- Warning
- Note it may return NULL if no nodes exist
◆ getFirstNode() [4/4]
const NodeTrait< RootT, LEVEL >::type * getFirstNode |
( |
| ) |
const |
|
inline |
return a const pointer to the first node of the specified level
- Warning
- Note it may return NULL if no nodes exist
◆ getValue()
Return the value of the given voxel (regardless of state or location in the tree.)
◆ isActive()
Return the active state of the given voxel (regardless of state or location in the tree.)
◆ isEmpty()
Return true if this tree is empty, i.e. contains no values or nodes.
◆ memUsage()
static uint64_t memUsage |
( |
| ) |
|
|
inlinestatic |
return memory usage in bytes for the class
◆ nodeCount() [1/2]
uint32_t nodeCount |
( |
| ) |
const |
|
inline |
◆ nodeCount() [2/2]
uint32_t nodeCount |
( |
int |
level | ) |
const |
|
inline |
◆ operator=()
Tree & operator= |
( |
const Tree< RootT > & |
| ) |
|
|
delete |
◆ probeValue()
Combines the previous two methods in a single call.
◆ root() [1/2]
◆ root() [2/2]
const RootT & root |
( |
| ) |
const |
|
inline |