OpenVDB  11.0.0
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
Tree< BuildT > Struct Template Reference

#include <nanovdb/util/GridBuilder.h>

Inherited by Grid< BuildT >.

Classes

struct  WriteAccessor
 

Public Types

using ValueType = typename BuildToValueMap< BuildT >::type
 
using Node0 = build::LeafNode< BuildT >
 
using Node1 = build::InternalNode< Node0 >
 
using Node2 = build::InternalNode< Node1 >
 
using RootNodeType = build::RootNode< Node2 >
 
using LeafNodeType = typename RootNodeType::LeafNodeType
 

Public Member Functions

 Tree (const ValueType &background)
 
 Tree (const Tree &)=delete
 
 Tree (Tree &&)=delete
 
Treetree ()
 
RootNodeTyperoot ()
 
ValueType getValue (const Coord &ijk) const
 
ValueType getValue (int i, int j, int k) const
 
void setValue (const Coord &ijk, const ValueType &value)
 
std::array< size_t, 3 > nodeCount () const
 
ValueAccessor< BuildT > getAccessor ()
 regular accessor for thread-safe reading and non-thread-safe writing More...
 
WriteAccessor getWriteAccessor ()
 special accessor for thread-safe writing only More...
 

Public Attributes

RootNodeType mRoot
 
std::mutex mMutex
 

Member Typedef Documentation

using Node0 = build::LeafNode<BuildT>
using ValueType = typename BuildToValueMap<BuildT>::type

Constructor & Destructor Documentation

Tree ( const ValueType background)
inline
Tree ( const Tree< BuildT > &  )
delete
Tree ( Tree< BuildT > &&  )
delete

Member Function Documentation

ValueAccessor<BuildT> getAccessor ( )
inline

regular accessor for thread-safe reading and non-thread-safe writing

ValueType getValue ( const Coord ijk) const
inline
ValueType getValue ( int  i,
int  j,
int  k 
) const
inline
WriteAccessor getWriteAccessor ( )
inline

special accessor for thread-safe writing only

std::array<size_t,3> nodeCount ( ) const
inline
RootNodeType& root ( )
inline
void setValue ( const Coord ijk,
const ValueType value 
)
inline
Tree& tree ( )
inline

Member Data Documentation

std::mutex mMutex
RootNodeType mRoot