Base-class for quantized float leaf nodes. More...
#include <nanovdb/NanoVDB.h>
Public Types | |
| using | ValueType = float |
| using | FloatType = float |
Public Member Functions | |
| __hostdev__ void | init (float min, float max, uint8_t bitWidth) |
| __hostdev__ void | setOn (uint32_t offset) |
| __hostdev__ float | getMin () const |
| return the quantized minimum of the active values in this node | |
| __hostdev__ float | getMax () const |
| return the quantized maximum of the active values in this node | |
| __hostdev__ float | getAvg () const |
| return the quantized average of the active values in this node | |
| __hostdev__ float | getDev () const |
| return the quantized standard deviation of the active values in this node | |
| __hostdev__ void | setMin (float min) |
| __hostdev__ void | setMax (float max) |
| __hostdev__ void | setAvg (float avg) |
| __hostdev__ void | setDev (float dev) |
| template<typename T> | |
| __hostdev__ void | setOrigin (const T &ijk) |
Static Public Member Functions | |
| static __hostdev__ uint64_t | memUsage () |
| static __hostdev__ bool | hasStats () |
| static __hostdev__ constexpr uint32_t | padding () |
| Return padding of this class in bytes, due to aliasing and 32B alignment. | |
Public Attributes | |
| CoordT | mBBoxMin |
| uint8_t | mBBoxDif [3] |
| uint8_t | mFlags |
| MaskT< LOG2DIM > | mValueMask |
| float | mMinimum |
| float | mQuantum |
| uint16_t | mMin |
| uint16_t | mMax |
| uint16_t | mAvg |
| uint16_t | mDev |
Base-class for quantized float leaf nodes.
| using FloatType = float |
| using ValueType = float |
|
inline |
return the quantized average of the active values in this node
|
inline |
return the quantized standard deviation of the active values in this node
|
inline |
return the quantized maximum of the active values in this node
|
inline |
return the quantized minimum of the active values in this node
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inlinestaticconstexpr |
Return padding of this class in bytes, due to aliasing and 32B alignment.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| uint16_t mAvg |
| uint8_t mBBoxDif[3] |
| CoordT mBBoxMin |
| uint16_t mDev |
| uint8_t mFlags |
| uint16_t mMax |
| uint16_t mMin |
| float mMinimum |
| float mQuantum |
| MaskT<LOG2DIM> mValueMask |