OpenVDB 11.0.0
|
Top-most node of the VDB tree structure. More...
#include <nanovdb/NanoVDB.h>
Classes | |
class | BaseIter |
class | ChildIter |
class | DenseIter |
class | ValueIter |
class | ValueOnIter |
Public Member Functions | |
ChildIterator | beginChild () |
ConstChildIterator | cbeginChild () const |
ValueIterator | beginValue () |
ConstValueIterator | cbeginValueAll () const |
ValueOnIterator | beginValueOn () |
ConstValueOnIterator | cbeginValueOn () const |
DenseIterator | beginDense () |
ConstDenseIterator | cbeginDense () const |
ConstDenseIterator | cbeginChildAll () const |
RootNode ()=delete | |
This class cannot be constructed or deleted. | |
RootNode (const RootNode &)=delete | |
RootNode & | operator= (const RootNode &)=delete |
~RootNode ()=delete | |
AccessorType | getAccessor () const |
DataType * | data () |
const DataType * | data () const |
const BBoxType & | bbox () const |
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. | |
const ValueType & | background () const |
Return the total number of active voxels in the root and all its child nodes. | |
const uint32_t & | tileCount () const |
Return the number of tiles encoded in this root node. | |
const uint32_t & | getTableSize () const |
const ValueType & | minimum () const |
Return a const reference to the minimum active value encoded in this root node and any of its child nodes. | |
const ValueType & | maximum () const |
Return a const reference to the maximum active value encoded in this root 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 root node and any of its child nodes. | |
FloatType | variance () const |
Return the variance of all the active values encoded in this root 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 root node and any of its child nodes. | |
uint64_t | memUsage () const |
Return the actual memory footprint of this root node. | |
bool | isEmpty () const |
Return true if this RootNode is empty, i.e. contains no values or nodes. | |
ValueType | getValue (const CoordType &ijk) const |
Return the value of the given voxel. | |
ValueType | getValue (int i, int j, int k) const |
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 |
ChildNodeType * | probeChild (const CoordType &ijk) |
template<typename OpT , typename... ArgsT> | |
auto | get (const CoordType &ijk, ArgsT &&... args) const |
template<typename OpT , typename... ArgsT> | |
decltype(OpT::set(std::declval< Tile & >(), std::declval< ArgsT >()...)) | set (const CoordType &ijk, ArgsT &&... args) |
const Tile * | tile (uint32_t n) const |
Returns a non-const reference to the tile at the specified linear offset. | |
Tile * | tile (uint32_t n) |
Tile * | probeTile (const CoordT &ijk) |
const Tile * | probeTile (const CoordT &ijk) const |
ChildT * | getChild (const Tile *tile) |
Returns a const reference to the child node in the specified tile. | |
const ChildT * | getChild (const Tile *tile) const |
const ValueT & | getMin () const |
const ValueT & | getMax () const |
void | setMin (const ValueT &v) |
void | setMax (const ValueT &v) |
void | setAvg (const StatsT &v) |
void | setDev (const StatsT &v) |
Static Public Member Functions | |
static uint64_t | memUsage (uint32_t tableSize) |
Return the expected memory footprint in bytes with the specified number of tiles. | |
template<typename CoordType > | |
static KeyT | CoordToKey (const CoordType &ijk) |
static CoordT | KeyToCoord (const KeyT &key) |
static constexpr uint32_t | padding () |
Return padding of this class in bytes, due to aliasing and 32B alignment. | |
Public Attributes | |
BBox< CoordT > | mBBox |
uint32_t | mTableSize |
ValueT | mBackground |
ValueT | mMinimum |
ValueT | mMaximum |
StatsT | mAverage |
StatsT | mStdDevi |
Static Public Attributes | |
static constexpr bool | FIXED_SIZE = DataType::FIXED_SIZE |
static constexpr uint32_t | LEVEL = 1 + ChildT::LEVEL |
Friends | |
template<typename , int , int , int > | |
class | ReadAccessor |
template<typename > | |
class | Tree |
Top-most node of the VDB tree structure.
using AccessorType = DefaultReadAccessor<BuildType> |
using BuildType = typename DataType::BuildT |
using ChildIterator = ChildIter<RootNode> |
using ChildNodeType = ChildT |
using ConstValueOnIterator = ValueOnIter<const RootNode> |
using DenseIterator = DenseIter<RootNode> |
using FloatType = typename DataType::StatsT |
Return a key based on the coordinates of a voxel.
using LeafNodeType = typename ChildT::LeafNodeType |
using LowerNodeType = typename UpperNodeType::ChildNodeType |
using RootNodeType = RootType |
using Tile = typename DataType::Tile |
using UpperNodeType = ChildT |
using ValueIterator = ValueIter<RootNode> |
using ValueOnIterator = ValueOnIter<RootNode> |
using ValueType = typename DataType::ValueT |
Return a const reference to the average of all the active values encoded in this root node and any of its child nodes.
Return the total number of active voxels in the root and all its child nodes.
Return a const reference to the background value, i.e. the value associated with any coordinate location that has not been set explicitly.
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.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns a const reference to the child node in the specified tile.
Return the value of the given voxel.
Return true if this RootNode is empty, i.e. contains no values or nodes.
Return a const reference to the maximum active value encoded in this root node and any of its child nodes.
Return the actual memory footprint of this root node.
Return the expected memory footprint in bytes with the specified number of tiles.
Return a const reference to the minimum active value encoded in this root node and any of its child nodes.
Return padding of this class in bytes, due to aliasing and 32B alignment.
|
inline |
|
inline |
|
inline |
return the state and updates the value of the specified voxel
|
inline |
Return a const reference to the standard deviation of all the active values encoded in this root node and any of its child nodes.
Returns a non-const reference to the tile at the specified linear offset.
Return the number of tiles encoded in this root node.
Return the variance of all the active values encoded in this root node and any of its child nodes.