HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::NodeAccessor< GridT > Class Template Reference

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

#include <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::stringgetName () 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

Definition at line 303 of file CreateNanoGrid.h.

Member Typedef Documentation

template<typename GridT >
using nanovdb::NodeAccessor< GridT >::BuildType = typename GridT::BuildType

Definition at line 308 of file CreateNanoGrid.h.

template<typename GridT >
using nanovdb::NodeAccessor< GridT >::GridType = GridT

Definition at line 310 of file CreateNanoGrid.h.

template<typename GridT >
template<int LEVEL>
using nanovdb::NodeAccessor< GridT >::NodeType = typename NodeTrait<const TreeType, LEVEL>::type

Definition at line 314 of file CreateNanoGrid.h.

template<typename GridT >
using nanovdb::NodeAccessor< GridT >::RootType = typename TreeType::RootNodeType

Definition at line 312 of file CreateNanoGrid.h.

template<typename GridT >
using nanovdb::NodeAccessor< GridT >::TreeType = typename GridT::TreeType

Definition at line 311 of file CreateNanoGrid.h.

template<typename GridT >
using nanovdb::NodeAccessor< GridT >::ValueType = typename GridT::ValueType

Definition at line 309 of file CreateNanoGrid.h.

Constructor & Destructor Documentation

template<typename GridT >
nanovdb::NodeAccessor< GridT >::NodeAccessor ( const GridT &  grid)
inline

Definition at line 315 of file CreateNanoGrid.h.

Member Function Documentation

template<typename GridT >
const std::string& nanovdb::NodeAccessor< GridT >::getName ( ) const
inline

Definition at line 322 of file CreateNanoGrid.h.

template<typename GridT >
const GridType& nanovdb::NodeAccessor< GridT >::grid ( ) const
inline

Definition at line 316 of file CreateNanoGrid.h.

template<typename GridT >
GridClass nanovdb::NodeAccessor< GridT >::gridClass ( ) const
inline

Definition at line 325 of file CreateNanoGrid.h.

template<typename GridT >
bool nanovdb::NodeAccessor< GridT >::hasLongGridName ( ) const
inline

Definition at line 323 of file CreateNanoGrid.h.

template<typename GridT >
const nanovdb::Map& nanovdb::NodeAccessor< GridT >::map ( ) const
inline

Definition at line 324 of file CreateNanoGrid.h.

template<typename GridT >
template<int LEVEL>
const NodeType<LEVEL>& nanovdb::NodeAccessor< GridT >::node ( uint32_t  i) const
inline

Definition at line 321 of file CreateNanoGrid.h.

template<typename GridT >
uint64_t nanovdb::NodeAccessor< GridT >::nodeCount ( int  level) const
inline

Definition at line 319 of file CreateNanoGrid.h.

template<typename GridT >
const RootType& nanovdb::NodeAccessor< GridT >::root ( ) const
inline

Definition at line 318 of file CreateNanoGrid.h.

template<typename GridT >
const TreeType& nanovdb::NodeAccessor< GridT >::tree ( ) const
inline

Definition at line 317 of file CreateNanoGrid.h.

Member Data Documentation

template<typename GridT >
constexpr bool nanovdb::NodeAccessor< GridT >::IS_NANOVDB = false
static

Definition at line 307 of file CreateNanoGrid.h.

template<typename GridT >
constexpr bool nanovdb::NodeAccessor< GridT >::IS_OPENVDB = false
static

Definition at line 306 of file CreateNanoGrid.h.


The documentation for this class was generated from the following file: