OpenVDB: ReadAccessor< BuildT, 0, 1, 2 > Class Template Reference

OpenVDB 9.0.0

Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
ReadAccessor< BuildT, 0, 1, 2 > Class Template Reference

Node caching at all (three) tree levels. More...

`#include <nanovdb/NanoVDB.h>`

Inheritance diagram for ReadAccessor< BuildT, 0, 1, 2 >:

## Public Types
using | ValueType = ValueT
using | CoordType = CoordT
using | NodeInfo = typename ReadAccessor< ValueT, -1, -1, -1 >::NodeInfo

## Public Member Functions
| ReadAccessor (const RootT &root)
| Constructor from a root node. More...
const RootT & | root () const
| ReadAccessor (const ReadAccessor &)=default
| Defaults constructors. More...
| ~ReadAccessor ()=default
ReadAccessor & | operator= (const ReadAccessor &)=default
template<typename NodeT >
const NodeT * | getNode () const
| Return a const point to the cached node of the specified type. More...
template<typename NodeT >
bool | isCached (const CoordType &ijk) const
ValueType | getValue (const CoordType &ijk) const
NodeInfo | getNodeInfo (const CoordType &ijk) const
bool | isActive (const CoordType &ijk) const
bool | probeValue (const CoordType &ijk, ValueType &v) const
const LeafT * | probeLeaf (const CoordType &ijk) const
template<typename RayT >
uint32_t | getDim (const CoordType &ijk, const RayT &ray) const

## Static Public Attributes
static const int | CacheLevels = 3

## Friends
template<typename >
class | RootNode
| Allow nodes to insert themselves into the cache. More...
template<typename , uint32_t >
class | InternalNode
template<typename , typename , template< uint32_t > class, uint32_t >
class | LeafNode

## Detailed Description

template<typename BuildT>
class nanovdb::ReadAccessor< BuildT, 0, 1, 2 >

Node caching at all (three) tree levels.

## Member Typedef Documentation

## ◆ CoordType

using CoordType = CoordT

## ◆ NodeInfo

using NodeInfo = typename ReadAccessor<ValueT, -1, -1, -1>::NodeInfo

## ◆ ValueType

using ValueType = ValueT

## Constructor & Destructor Documentation

## ◆ ReadAccessor() [1/2]

ReadAccessor | ( | const RootT & | root | ) |
| inline

Constructor from a root node.

## ◆ ReadAccessor() [2/2]

ReadAccessor | ( | const ReadAccessor< BuildT, 0, 1, 2 > & |  | ) |
| default

Defaults constructors.

## ◆ ~ReadAccessor()

~ReadAccessor | ( |  | ) |
| default

## Member Function Documentation

## ◆ getDim()

uint32_t getDim | ( | const CoordType & | ijk,
|  | const RayT & | ray
| ) |  | const
| inline

## ◆ getNode()

const NodeT * getNode | ( |  | ) | const
| inline

Return a const point to the cached node of the specified type.

Warning
  The return value could be NULL.

## ◆ getNodeInfo()

NodeInfo getNodeInfo | ( | const CoordType & | ijk | ) | const
| inline

## ◆ getValue()

ValueType getValue | ( | const CoordType & | ijk | ) | const
| inline

## ◆ isActive()

bool isActive | ( | const CoordType & | ijk | ) | const
| inline

## ◆ isCached()

bool isCached | ( | const CoordType & | ijk | ) | const
| inline

## ◆ operator=()

ReadAccessor & operator= | ( | const ReadAccessor< BuildT, 0, 1, 2 > & |  | ) |
| default

## ◆ probeLeaf()

const LeafT * probeLeaf | ( | const CoordType & | ijk | ) | const
| inline

## ◆ probeValue()

bool probeValue | ( | const CoordType & | ijk,
|  | ValueType & | v
| ) |  | const
| inline

## ◆ root()

const RootT & root | ( |  | ) | const
| inline

## Friends And Related Function Documentation

## ◆ InternalNode

friend class InternalNode
| friend

## ◆ LeafNode

friend class LeafNode
| friend

## ◆ RootNode

friend class RootNode
| friend

Allow nodes to insert themselves into the cache.

## Member Data Documentation

## ◆ CacheLevels

const int CacheLevels = 3
| static