OpenVDB  11.0.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
LeafData< FpN, CoordT, MaskT, LOG2DIM > Struct Template Reference

#include <nanovdb/NanoVDB.h>

Inherits LeafFnBase< CoordT, MaskT, LOG2DIM >.

Public Types

using BaseT = LeafFnBase< CoordT, MaskT, LOG2DIM >
 
using BuildType = FpN
 
using ValueType = float
 
using FloatType = float
 

Public Member Functions

uint8_t bitWidth () const
 
size_t memUsage () const
 
float getValue (uint32_t i) const
 
 LeafData ()=delete
 This class cannot be constructed or deleted. More...
 
 LeafData (const LeafData &)=delete
 
LeafDataoperator= (const LeafData &)=delete
 
 ~LeafData ()=delete
 
void init (float min, float max, uint8_t bitWidth)
 
void setOn (uint32_t offset)
 
float getMin () const
 return the quantized minimum of the active values in this node More...
 
float getMax () const
 return the quantized maximum of the active values in this node More...
 
float getAvg () const
 return the quantized average of the active values in this node More...
 
float getDev () const
 return the quantized standard deviation of the active values in this node More...
 
void setMin (float min)
 
void setMax (float max)
 
void setAvg (float avg)
 
void setDev (float dev)
 
template<typename T >
void setOrigin (const T &ijk)
 

Static Public Member Functions

static constexpr uint32_t padding ()
 
static size_t memUsage (uint32_t bitWidth)
 
static uint64_t memUsage ()
 
static bool hasStats ()
 

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
 

Static Public Attributes

static constexpr bool FIXED_SIZE = false
 

Member Typedef Documentation

using BaseT = LeafFnBase<CoordT, MaskT, LOG2DIM>
using BuildType = FpN
using FloatType = float
inherited
using ValueType = float
inherited

Constructor & Destructor Documentation

LeafData ( )
delete

This class cannot be constructed or deleted.

LeafData ( const LeafData< FpN, CoordT, MaskT, LOG2DIM > &  )
delete
~LeafData ( )
delete

Member Function Documentation

uint8_t bitWidth ( ) const
inline
float getAvg ( ) const
inlineinherited

return the quantized average of the active values in this node

float getDev ( ) const
inlineinherited

return the quantized standard deviation of the active values in this node

Note
0 <= StdDev <= max-min or 0 <= StdDev/(max-min) <= 1
float getMax ( ) const
inlineinherited

return the quantized maximum of the active values in this node

float getMin ( ) const
inlineinherited

return the quantized minimum of the active values in this node

float getValue ( uint32_t  i) const
inline
static bool hasStats ( )
inlinestaticinherited
void init ( float  min,
float  max,
uint8_t  bitWidth 
)
inlineinherited
static uint64_t memUsage ( )
inlinestaticinherited
size_t memUsage ( ) const
inline
static size_t memUsage ( uint32_t  bitWidth)
inlinestatic
LeafData& operator= ( const LeafData< FpN, CoordT, MaskT, LOG2DIM > &  )
delete
static constexpr uint32_t padding ( )
inlinestatic
void setAvg ( float  avg)
inlineinherited
Note
min <= avg <= max or 0 <= (avg-min)/(min-max) <= 1
void setDev ( float  dev)
inlineinherited
Note
0 <= StdDev <= max-min or 0 <= StdDev/(max-min) <= 1
void setMax ( float  max)
inlineinherited
Note
min <= X <= max or 0 <= (X-min)/(min-max) <= 1
void setMin ( float  min)
inlineinherited
Note
min <= X <= max or 0 <= (X-min)/(min-max) <= 1
void setOn ( uint32_t  offset)
inlineinherited
void setOrigin ( const T &  ijk)
inlineinherited

Member Data Documentation

constexpr bool FIXED_SIZE = false
static
uint16_t mAvg
inherited
uint8_t mBBoxDif[3]
inherited
CoordT mBBoxMin
inherited
uint16_t mDev
inherited
uint8_t mFlags
inherited
uint16_t mMax
inherited
uint16_t mMin
inherited
float mMinimum
inherited
float mQuantum
inherited
MaskT<LOG2DIM> mValueMask
inherited