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

#include <nanovdb/NanoVDB.h>

Inherits ReadAccessor< BuildT, 0, 1, 2 >.

Public Types

using BuildType = BuildT
 
using ValueType = ValueT
 
using CoordType = CoordT
 

Public Member Functions

 PointAccessor (const NanoGrid< Point > &grid)
 
__hostdev__ operator bool () const
 return true if this access was initialized correctly More...
 
__hostdev__ const NanoGrid< Point > & grid () const
 
__hostdev__ 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...
 
__hostdev__ 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...
 
__hostdev__ uint64_t voxelPoints (const Coord &ijk, const AttT *&begin, const AttT *&end) const
 get iterators over attributes to points at a specific voxel location More...
 
__hostdev__ const RootTroot () const
 
template<typename NodeT >
__hostdev__ const NodeT * getNode () const
 Return a const point to the cached node of the specified type. More...
 
template<int LEVEL>
__hostdev__ const NodeTrait< TreeT, LEVEL >::type * getNode () const
 
__hostdev__ void clear ()
 Reset this access to its initial state, i.e. with an empty cache. More...
 
template<typename NodeT >
__hostdev__ bool isCached (const CoordType &ijk) const
 
__hostdev__ ValueType getValue (const CoordType &ijk) const
 
__hostdev__ ValueType getValue (int i, int j, int k) const
 
__hostdev__ ValueType operator() (const CoordType &ijk) const
 
__hostdev__ ValueType operator() (int i, int j, int k) const
 
__hostdev__ auto getNodeInfo (const CoordType &ijk) const
 
__hostdev__ bool isActive (const CoordType &ijk) const
 
__hostdev__ bool probeValue (const CoordType &ijk, ValueType &v) const
 
__hostdev__ const LeafTprobeLeaf (const CoordType &ijk) const
 
template<typename OpT , typename... ArgsT>
__hostdev__ auto get (const CoordType &ijk, ArgsT &&...args) const
 
template<typename OpT , typename... ArgsT>
__hostdev__ auto set (const CoordType &ijk, ArgsT &&...args) const
 
template<typename RayT >
__hostdev__ uint32_t getDim (const CoordType &ijk, const RayT &ray) const
 

Static Public Attributes

static const int CacheLevels = 3
 

Member Typedef Documentation

using BuildType = BuildT
inherited
using CoordType = CoordT
inherited
using ValueType = ValueT
inherited

Constructor & Destructor Documentation

PointAccessor ( const NanoGrid< Point > &  grid)
inline

Member Function Documentation

__hostdev__ void clear ( )
inlineinherited

Reset this access to its initial state, i.e. with an empty cache.

__hostdev__ auto get ( const CoordType ijk,
ArgsT &&...  args 
) const
inlineinherited
__hostdev__ uint32_t getDim ( const CoordType ijk,
const RayT &  ray 
) const
inlineinherited
__hostdev__ const NodeT* getNode ( ) const
inlineinherited

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

Warning
The return value could be NULL.
__hostdev__ const NodeTrait<TreeT, LEVEL>::type* getNode ( ) const
inlineinherited
__hostdev__ auto getNodeInfo ( const CoordType ijk) const
inlineinherited
__hostdev__ ValueType getValue ( const CoordType ijk) const
inlineinherited
__hostdev__ ValueType getValue ( int  i,
int  j,
int  k 
) const
inlineinherited
__hostdev__ const NanoGrid<Point>& grid ( ) const
inline
__hostdev__ 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.

__hostdev__ bool isActive ( const CoordType ijk) const
inlineinherited
__hostdev__ bool isCached ( const CoordType ijk) const
inlineinherited
__hostdev__ 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.

__hostdev__ operator bool ( ) const
inline

return true if this access was initialized correctly

__hostdev__ ValueType operator() ( const CoordType ijk) const
inlineinherited
__hostdev__ ValueType operator() ( int  i,
int  j,
int  k 
) const
inlineinherited
__hostdev__ const LeafT* probeLeaf ( const CoordType ijk) const
inlineinherited
__hostdev__ bool probeValue ( const CoordType ijk,
ValueType v 
) const
inlineinherited
__hostdev__ const RootT& root ( ) const
inlineinherited
__hostdev__ auto set ( const CoordType ijk,
ArgsT &&...  args 
) const
inlineinherited
__hostdev__ uint64_t voxelPoints ( const Coord &  ijk,
const AttT *&  begin,
const AttT *&  end 
) const
inline

get iterators over attributes to points at a specific voxel location

Member Data Documentation

const int CacheLevels = 3
staticinherited