OpenVDB  11.0.0
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

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

Constructor & Destructor Documentation

NodeAccessor ( const GridT &  grid)
inline

Member Function Documentation

const std::string& getName ( ) const
inline
const GridType& grid ( ) const
inline
GridClass gridClass ( ) const
inline
bool hasLongGridName ( ) const
inline
const nanovdb::Map& map ( ) const
inline
const NodeType<LEVEL>& node ( uint32_t  i) const
inline
uint64_t nodeCount ( int  level) const
inline
const RootType& root ( ) const
inline
const TreeType& tree ( ) const
inline

Member Data Documentation

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