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

Stuct with all the member data of the LeafNode (useful during serialization of an openvdb LeafNode) More...

#include <nanovdb/NanoVDB.h>

Inherits LeafFnBase< CoordT, MaskT, LOG2DIM >.

Public Types

using BaseT = LeafFnBase< CoordT, MaskT, LOG2DIM >
 
using BuildType = Fp4
 
using ArrayType = uint8_t
 
using ValueType = float
 
using FloatType = float
 

Public Member Functions

__hostdev__ 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
 
__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 More...
 
__hostdev__ float getMax () const
 return the quantized maximum of the active values in this node More...
 
__hostdev__ float getAvg () const
 return the quantized average of the active values in this node More...
 
__hostdev__ float getDev () const
 return the quantized standard deviation of the active values in this node More...
 
__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__ constexpr uint64_t memUsage ()
 
static __hostdev__ constexpr uint32_t padding ()
 
static __hostdev__ constexpr uint8_t bitWidth ()
 
static __hostdev__ bool hasStats ()
 

Public Attributes

uint8_t mCode [1u<< (3 *LOG2DIM-1)]
 
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 = true
 

Detailed Description

template<typename CoordT, template< uint32_t > class MaskT, uint32_t LOG2DIM>
struct nanovdb::LeafData< Fp4, CoordT, MaskT, LOG2DIM >

Stuct with all the member data of the LeafNode (useful during serialization of an openvdb LeafNode)

Note
No client code should (or can) interface with this struct so it can safely be ignored!

Member Typedef Documentation

using ArrayType = uint8_t
using BaseT = LeafFnBase<CoordT, MaskT, LOG2DIM>
using BuildType = Fp4
using FloatType = float
inherited
using ValueType = float
inherited

Constructor & Destructor Documentation

LeafData ( )
delete

This class cannot be constructed or deleted.

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

Member Function Documentation

static __hostdev__ constexpr uint8_t bitWidth ( )
inlinestatic
__hostdev__ float getAvg ( ) const
inlineinherited

return the quantized average of the active values in this node

__hostdev__ 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
__hostdev__ float getMax ( ) const
inlineinherited

return the quantized maximum of the active values in this node

__hostdev__ float getMin ( ) const
inlineinherited

return the quantized minimum of the active values in this node

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

Member Data Documentation

constexpr bool FIXED_SIZE = true
static
uint16_t mAvg
inherited
uint8_t mBBoxDif[3]
inherited
CoordT mBBoxMin
inherited
uint8_t mCode[1u<< (3 *LOG2DIM-1)]
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