Struct with all the member data of the RootNode (useful during serialization of an openvdb RootNode)
More...
#include <nanovdb/NanoVDB.h>
Inherited by RootNode< ChildT >.
|
using | ValueT = typename ChildT::ValueType |
|
using | BuildT = typename ChildT::BuildType |
|
using | CoordT = typename ChildT::CoordType |
|
using | StatsT = typename ChildT::FloatType |
|
using | KeyT = uint64_t |
| Return a key based on the coordinates of a voxel. More...
|
|
template<typename ChildT>
struct nanovdb::RootData< ChildT >
Struct with all the member data of the RootNode (useful during serialization of an openvdb RootNode)
- Note
- No client code should (or can) interface with this struct so it can safely be ignored!
using BuildT = typename ChildT::BuildType |
using CoordT = typename ChildT::CoordType |
Return a key based on the coordinates of a voxel.
using StatsT = typename ChildT::FloatType |
using ValueT = typename ChildT::ValueType |
This class cannot be constructed or deleted.
const StatsT& average |
( |
| ) |
const |
|
inline |
static KeyT CoordToKey |
( |
const CoordType & |
ijk | ) |
|
|
inlinestatic |
ChildT* getChild |
( |
const Tile * |
tile | ) |
|
|
inline |
Returns a const reference to the child node in the specified tile.
- Warning
- A child node is assumed to exist in the specified tile
const ChildT* getChild |
( |
const Tile * |
tile | ) |
const |
|
inline |
const ValueT& getMax |
( |
| ) |
const |
|
inline |
const ValueT& getMin |
( |
| ) |
const |
|
inline |
static constexpr uint32_t padding |
( |
| ) |
|
|
inlinestatic |
Return padding of this class in bytes, due to aliasing and 32B alignment.
- Note
- The extra bytes are not necessarily at the end, but can come from aliasing of individual data members.
void setAvg |
( |
const StatsT & |
v | ) |
|
|
inline |
void setDev |
( |
const StatsT & |
v | ) |
|
|
inline |
void setMax |
( |
const ValueT & |
v | ) |
|
|
inline |
void setMin |
( |
const ValueT & |
v | ) |
|
|
inline |
const StatsT& stdDeviation |
( |
| ) |
const |
|
inline |
const Tile* tile |
( |
uint32_t |
n | ) |
const |
|
inline |
Returns a non-const reference to the tile at the specified linear offset.
- Warning
- The linear offset is assumed to be in the valid range
constexpr bool FIXED_SIZE = false |
|
static |