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

#include <nanovdb/util/GridBuilder.h>

Inheritance diagram for Tree< BuildT >:
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
 
WriteAccessor getWriteAccessor ()
 special accessor for thread-safe writing only
 

Public Attributes

RootNodeType mRoot
 
std::mutex mMutex
 

Member Typedef Documentation

◆ LeafNodeType

◆ Node0

using Node0 = build::LeafNode<BuildT>

◆ Node1

◆ Node2

◆ RootNodeType

◆ ValueType

using ValueType = typename BuildToValueMap<BuildT>::type

Constructor & Destructor Documentation

◆ Tree() [1/3]

Tree ( const ValueType background)
inline

◆ Tree() [2/3]

Tree ( const Tree< BuildT > &  )
delete

◆ Tree() [3/3]

Tree ( Tree< BuildT > &&  )
delete

Member Function Documentation

◆ getAccessor()

ValueAccessor< BuildT > getAccessor ( )
inline

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

◆ getValue() [1/2]

ValueType getValue ( const Coord ijk) const
inline

◆ getValue() [2/2]

ValueType getValue ( int  i,
int  j,
int  k 
) const
inline

◆ getWriteAccessor()

WriteAccessor getWriteAccessor ( )
inline

special accessor for thread-safe writing only

◆ nodeCount()

std::array< size_t, 3 > nodeCount ( ) const
inline

◆ root()

RootNodeType & root ( )
inline

◆ setValue()

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

◆ tree()

Tree & tree ( )
inline

Member Data Documentation

◆ mMutex

std::mutex mMutex

◆ mRoot

RootNodeType mRoot