OpenVDB: PointAccessor< AttT > Class Template Reference

OpenVDB 9.1.0

Public Types | Public Member Functions | Static Public Attributes | List of all members
PointAccessor< AttT > Class Template Reference

Class to access points at a specific voxel location. More...

`#include <nanovdb/NanoVDB.h>`

Inheritance diagram for PointAccessor< AttT >:

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

## Public Member Functions
| PointAccessor (const UInt32Grid &grid)
uint64_t | gridPoints (const AttT *&begin, const AttT *&end) const
| Return the total number of point in the grid and set the iterators to the complete range of points. More...
uint64_t | leafPoints (const Coord &ijk, const AttT *&begin, const AttT *&end) const
| Return the number of points in the leaf node containing the coordinate ijk. If this return value is larger than zero then the iterators begin and end will point to all the attributes contained within that leaf node. More...
uint64_t | voxelPoints (const Coord &ijk, const AttT *&begin, const AttT *&end) const
| get iterators over offsets to points at a specific voxel location More...
const RootT & | root () const
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

## Detailed Description

template<typename AttT>
class nanovdb::PointAccessor< AttT >

Class to access points at a specific voxel location.

## Member Typedef Documentation

## ◆ CoordType

using CoordType = CoordT
| inherited

## ◆ LeafNodeType

using LeafNodeType = typename NanoRoot<uint32_t>::LeafNodeType

## ◆ NodeInfo

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

## ◆ ValueType

using ValueType = ValueT
| inherited

## Constructor & Destructor Documentation

## ◆ PointAccessor()

PointAccessor | ( | const UInt32Grid & | grid | ) |
| inline

## Member Function Documentation

## ◆ getDim()

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

## ◆ getNode()

const NodeT * getNode | ( |  | ) | const
| inlineinherited

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
| inlineinherited

## ◆ getValue()

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

## ◆ gridPoints()

uint64_t gridPoints | ( | const AttT *& | begin,
|  | const AttT *& | end
| ) |  | const
| inline

Return the total number of point in the grid and set the iterators to the complete range of points.

## ◆ isActive()

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

## ◆ isCached()

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

## ◆ leafPoints()

uint64_t leafPoints | ( | const Coord & | ijk,
|  | const AttT *& | begin,
|  | const AttT *& | end
| ) |  | const
| inline

Return the number of points in the leaf node containing the coordinate ijk. If this return value is larger than zero then the iterators begin and end will point to all the attributes contained within that leaf node.

## ◆ probeLeaf()

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

## ◆ probeValue()

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

## ◆ root()

const RootT & root | ( |  | ) | const
| inlineinherited

## ◆ voxelPoints()

uint64_t voxelPoints | ( | const Coord & | ijk,
|  | const AttT *& | begin,
|  | const AttT *& | end
| ) |  | const
| inline

get iterators over offsets to points at a specific voxel location

## Member Data Documentation

## ◆ CacheLevels

const int CacheLevels = 3
| staticinherited