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

#include <nanovdb/NanoVDB.h>

Public Types

using ValueType = uint64_t
 
using BuildType = Point
 
using FloatType = typename FloatTraits< ValueType >::FloatType
 
using ArrayType = uint16_t
 

Public Member Functions

uint64_t offset () const
 
uint64_t pointCount () const
 
uint64_t first (uint32_t i) const
 
uint64_t last (uint32_t i) const
 
uint64_t getValue (uint32_t i) const
 
void setValueOnly (uint32_t offset, uint16_t value)
 
void setValue (uint32_t offset, uint16_t value)
 
void setOn (uint32_t offset)
 
ValueType getMin () const
 
ValueType getMax () const
 
FloatType getAvg () const
 
FloatType getDev () const
 
void setMin (const ValueType &)
 
void setMax (const ValueType &)
 
void setAvg (const FloatType &)
 
void setDev (const FloatType &)
 
template<typename T >
void setOrigin (const T &ijk)
 
 LeafData ()=delete
 This class cannot be constructed or deleted. More...
 
 LeafData (const LeafData &)=delete
 
LeafDataoperator= (const LeafData &)=delete
 
 ~LeafData ()=delete
 

Static Public Member Functions

static constexpr uint32_t padding ()
 Return padding of this class in bytes, due to aliasing and 32B alignment. More...
 
static uint64_t memUsage ()
 

Public Attributes

CoordT mBBoxMin
 
uint8_t mBBoxDif [3]
 
uint8_t mFlags
 
MaskT< LOG2DIM > mValueMask
 
uint64_t mOffset
 
uint64_t mPointCount
 
uint16_t mValues [1u<< 3 *LOG2DIM]
 

Static Public Attributes

static constexpr bool FIXED_SIZE = true
 

Member Typedef Documentation

using ArrayType = uint16_t
using BuildType = Point
using ValueType = uint64_t

Constructor & Destructor Documentation

LeafData ( )
delete

This class cannot be constructed or deleted.

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

Member Function Documentation

uint64_t first ( uint32_t  i) const
inline
FloatType getAvg ( ) const
inline
FloatType getDev ( ) const
inline
ValueType getMax ( ) const
inline
ValueType getMin ( ) const
inline
uint64_t getValue ( uint32_t  i) const
inline
uint64_t last ( uint32_t  i) const
inline
static uint64_t memUsage ( )
inlinestatic
uint64_t offset ( ) const
inline
LeafData& operator= ( const LeafData< Point, CoordT, MaskT, LOG2DIM > &  )
delete
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.
uint64_t pointCount ( ) const
inline
void setAvg ( const FloatType )
inline
void setDev ( const FloatType )
inline
void setMax ( const ValueType )
inline
void setMin ( const ValueType )
inline
void setOn ( uint32_t  offset)
inline
void setOrigin ( const T &  ijk)
inline
void setValue ( uint32_t  offset,
uint16_t  value 
)
inline
void setValueOnly ( uint32_t  offset,
uint16_t  value 
)
inline

Member Data Documentation

constexpr bool FIXED_SIZE = true
static
uint8_t mBBoxDif[3]
CoordT mBBoxMin
uint8_t mFlags
uint64_t mOffset
uint64_t mPointCount
MaskT<LOG2DIM> mValueMask
uint16_t mValues[1u<< 3 *LOG2DIM]