OpenVDB 11.0.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Attributes | List of all members
NodeAccessor< GridT > Class Template Reference

The NodeAccessor provides a uniform API for accessing nodes got NanoVDB, OpenVDB and build Grids. More...

#include <nanovdb/util/CreateNanoGrid.h>

Public Types

using BuildType = typename GridT::BuildType
 
using ValueType = typename GridT::ValueType
 
using GridType = GridT
 
using TreeType = typename GridT::TreeType
 
using RootType = typename TreeType::RootNodeType
 
template<int LEVEL>
using NodeType = typename NodeTrait< const TreeType, LEVEL >::type
 

Public Member Functions

 NodeAccessor (const GridT &grid)
 
const GridTypegrid () const
 
const TreeTypetree () const
 
const RootTyperoot () const
 
uint64_t nodeCount (int level) const
 
template<int LEVEL>
const NodeType< LEVEL > & node (uint32_t i) const
 
const std::string & getName () const
 
bool hasLongGridName () const
 
const nanovdb::Mapmap () const
 
GridClass gridClass () const
 

Static Public Attributes

static constexpr bool IS_OPENVDB = false
 
static constexpr bool IS_NANOVDB = false
 

Detailed Description

template<typename GridT>
class nanovdb::NodeAccessor< GridT >

The NodeAccessor provides a uniform API for accessing nodes got NanoVDB, OpenVDB and build Grids.

Note
General implementation that works with nanovdb::build::Grid

Member Typedef Documentation

◆ BuildType

using BuildType = typename GridT::BuildType

◆ GridType

using GridType = GridT

◆ NodeType

using NodeType = typename NodeTrait<const TreeType, LEVEL>::type

◆ RootType

using RootType = typename TreeType::RootNodeType

◆ TreeType

using TreeType = typename GridT::TreeType

◆ ValueType

using ValueType = typename GridT::ValueType

Constructor & Destructor Documentation

◆ NodeAccessor()

NodeAccessor ( const GridT &  grid)
inline

Member Function Documentation

◆ getName()

const std::string & getName ( ) const
inline

◆ grid()

const GridType & grid ( ) const
inline

◆ gridClass()

GridClass gridClass ( ) const
inline

◆ hasLongGridName()

bool hasLongGridName ( ) const
inline

◆ map()

const nanovdb::Map & map ( ) const
inline

◆ node()

const NodeType< LEVEL > & node ( uint32_t  i) const
inline

◆ nodeCount()

uint64_t nodeCount ( int  level) const
inline

◆ root()

const RootType & root ( ) const
inline

◆ tree()

const TreeType & tree ( ) const
inline

Member Data Documentation

◆ IS_NANOVDB

constexpr bool IS_NANOVDB = false
staticconstexpr

◆ IS_OPENVDB

constexpr bool IS_OPENVDB = false
staticconstexpr