OpenVDB 11.0.0
 
Loading...
Searching...
No Matches
LeafNode< ValueMask >::ValueOnIterator Class Reference

Visits all active values in a leaf node. More...

#include <nanovdb/util/GridBuilder.h>

Inheritance diagram for LeafNode< ValueMask >::ValueOnIterator:

Public Types

using BuildType
 
using ValueType
 
using LeafNodeType
 
using NodeMaskType
 
using MaskIterT
 
using NanoLeafT
 

Public Member Functions

 ValueOnIterator ()
 
 ValueOnIterator (const LeafNode *parent)
 
ValueOnIteratoroperator= (const ValueOnIterator &)=default
 
bool operator* () const
 
Coord getCoord () const
 
 ValueOnIterator ()
 
 ValueOnIterator (const LeafNode *parent)
 
ValueOnIteratoroperator= (const ValueOnIterator &)=default
 
ValueType operator* () const
 
Coord getCoord () const
 
ValueOnIterator beginValueOn ()
 
ValueOnIterator cbeginValueOn () const
 
ValueOffIterator beginValueOff ()
 
ValueOffIterator cbeginValueOff () const
 
ValueIterator beginValue ()
 
ValueIterator cbeginValueAll () const
 
 LeafNode (const Coord &ijk, const ValueType &value, bool state)
 
 LeafNode (const LeafNode &)=delete
 
 LeafNode (LeafNode &&)=delete
 
LeafNodeoperator= (const LeafNode &)=delete
 
LeafNodeoperator= (LeafNode &&)=delete
 
 ~LeafNode ()=default
 
const Mask< LOG2DIM > & getValueMask () const
 
const Mask< LOG2DIM > & valueMask () const
 
const Coordorigin () const
 
void localToGlobalCoord (Coord &ijk) const
 
Coord offsetToGlobalCoord (uint32_t n) const
 
ValueType getFirstValue () const
 
ValueType getLastValue () const
 
const ValueTypegetValue (uint32_t i) const
 
const ValueTypegetValue (const Coord &ijk) const
 
auto get (const Coord &ijk, ArgsT &&... args) const
 
auto set (const Coord &ijk, ArgsT &&... args)
 
const ValueTypegetValueAndCache (const Coord &ijk, const AccT &) const
 
void setValueAndCache (const Coord &ijk, const ValueType &value, const AccT &)
 
void setValueOnAndCache (const Coord &ijk, const AccT &)
 
bool isActiveAndCache (const Coord &ijk, const AccT &) const
 
void setValue (uint32_t n, const ValueType &value)
 
void setValue (const Coord &ijk, const ValueType &value)
 
void merge (LeafNode &other)
 
std::enable_if< std::is_floating_point< T >::value >::type signedFloodFill (T outside)
 

Static Public Member Functions

static uint32_t CoordToOffset (const Coord &ijk)
 Return the linear offset corresponding to the given coordinate.
 
static Coord OffsetToLocalCoord (uint32_t n)
 

Public Attributes

Coord mOrigin
 
Mask< LOG2DIMmValueMask
 
ValueType mValues [SIZE]
 
NanoLeafTmDstNode
 
uint64_t mDstOffset
 
union { 
 
   NanoLeafT *   mDstNode 
 
   uint64_t   mDstOffset 
 
};  
 

Static Public Attributes

static constexpr uint32_t LOG2DIM
 
static constexpr uint32_t TOTAL
 
static constexpr uint32_t DIM
 
static constexpr uint32_t SIZE
 
static constexpr uint32_t MASK
 
static constexpr uint32_t LEVEL
 
static constexpr uint64_t NUM_VALUES
 

Detailed Description

Visits all active values in a leaf node.

Member Typedef Documentation

◆ BuildType

using BuildType

◆ LeafNodeType

using LeafNodeType

◆ MaskIterT

using MaskIterT

◆ NanoLeafT

using NanoLeafT

◆ NodeMaskType

using NodeMaskType

◆ ValueType

using ValueType

Constructor & Destructor Documentation

◆ ValueOnIterator() [1/4]

ValueOnIterator ( )
inline

◆ ValueOnIterator() [2/4]

ValueOnIterator ( const LeafNode< ValueMask > * parent)
inline

◆ ValueOnIterator() [3/4]

ValueOnIterator ( )
inline

◆ ValueOnIterator() [4/4]

ValueOnIterator ( const LeafNode< ValueMask > * parent)
inline

◆ ~LeafNode()

~LeafNode ( )
default

Member Function Documentation

◆ beginValue()

ValueIterator beginValue ( )
inline

◆ beginValueOff()

ValueOffIterator beginValueOff ( )
inline

◆ beginValueOn()

ValueOnIterator beginValueOn ( )
inline

◆ cbeginValueAll()

ValueIterator cbeginValueAll ( ) const
inline

◆ cbeginValueOff()

ValueOffIterator cbeginValueOff ( ) const
inline

◆ cbeginValueOn()

ValueOnIterator cbeginValueOn ( ) const
inline

◆ CoordToOffset()

static uint32_t CoordToOffset ( const Coord & ijk)
inlinestatic

Return the linear offset corresponding to the given coordinate.

◆ get()

auto get ( const Coord & ijk,
ArgsT &&... args ) const
inline

◆ getCoord() [1/2]

Coord getCoord ( ) const
inline

◆ getCoord() [2/2]

Coord getCoord ( ) const
inline

◆ getFirstValue()

ValueType getFirstValue ( ) const
inline

◆ getLastValue()

ValueType getLastValue ( ) const
inline

◆ getValue() [1/2]

const ValueType & getValue ( const Coord & ijk) const
inline

◆ getValue() [2/2]

const ValueType & getValue ( uint32_t i) const
inline

◆ getValueAndCache()

const ValueType & getValueAndCache ( const Coord & ijk,
const AccT &  ) const
inline

◆ getValueMask()

const Mask< LOG2DIM > & getValueMask ( ) const
inline

◆ isActiveAndCache()

bool isActiveAndCache ( const Coord & ijk,
const AccT &  ) const
inline

◆ LeafNode() [1/3]

LeafNode ( const Coord & ijk,
const ValueType & value,
bool state )
inline

◆ LeafNode() [2/3]

LeafNode ( const LeafNode< ValueMask > & )
delete

◆ LeafNode() [3/3]

LeafNode ( LeafNode< ValueMask > && )
delete

◆ localToGlobalCoord()

void localToGlobalCoord ( Coord & ijk) const
inline

◆ merge()

void merge ( LeafNode< ValueMask > & other)
inline

◆ offsetToGlobalCoord()

Coord offsetToGlobalCoord ( uint32_t n) const
inline

◆ OffsetToLocalCoord()

static Coord OffsetToLocalCoord ( uint32_t n)
inlinestatic

◆ operator*() [1/2]

ValueType operator* ( ) const
inline

◆ operator*() [2/2]

bool operator* ( ) const
inline

◆ operator=() [1/4]

LeafNode & operator= ( const LeafNode< ValueMask > & )
delete

◆ operator=() [2/4]

ValueOnIterator & operator= ( const ValueOnIterator & )
default

◆ operator=() [3/4]

ValueOnIterator & operator= ( const ValueOnIterator & )
default

◆ operator=() [4/4]

LeafNode & operator= ( LeafNode< ValueMask > && )
delete

◆ origin()

const Coord & origin ( ) const
inline

◆ set()

auto set ( const Coord & ijk,
ArgsT &&... args )
inline

◆ setValue() [1/2]

void setValue ( const Coord & ijk,
const ValueType & value )
inline

◆ setValue() [2/2]

void setValue ( uint32_t n,
const ValueType & value )
inline

◆ setValueAndCache()

void setValueAndCache ( const Coord & ijk,
const ValueType & value,
const AccT &  )
inline

◆ setValueOnAndCache()

void setValueOnAndCache ( const Coord & ijk,
const AccT &  )
inline

◆ signedFloodFill()

std::enable_if< std::is_floating_point< T >::value >::type signedFloodFill ( T outside)
inline

◆ valueMask()

const Mask< LOG2DIM > & valueMask ( ) const
inline

Member Data Documentation

◆ [union]

union { ... }

◆ DIM

uint32_t DIM
staticconstexpr

◆ LEVEL

uint32_t LEVEL
staticconstexpr

◆ LOG2DIM

uint32_t LOG2DIM
staticconstexpr

◆ MASK

uint32_t MASK
staticconstexpr

◆ mDstNode

NanoLeafT* mDstNode

◆ mDstOffset

uint64_t mDstOffset

◆ mOrigin

Coord mOrigin

◆ mValueMask

Mask<LOG2DIM> mValueMask

◆ mValues

ValueType mValues[SIZE]

◆ NUM_VALUES

uint64_t NUM_VALUES
staticconstexpr

◆ SIZE

uint32_t SIZE
staticconstexpr

◆ TOTAL

uint32_t TOTAL
staticconstexpr