OpenVDB  11.0.0
Public Types | Public Member Functions | Static Public Attributes | List of all members
SampleFromVoxels< TreeOrAccT, 0, true > Class Template Reference

Nearest neighbor, i.e. zero order, interpolator with caching. More...

#include <nanovdb/util/SampleFromVoxels.h>

Public Types

using ValueT = typename TreeOrAccT::ValueType
 
using CoordT = typename TreeOrAccT::CoordType
 

Public Member Functions

 SampleFromVoxels (const TreeOrAccT &acc)
 Construction from a Tree or ReadAccessor. More...
 
const TreeOrAccT & accessor () const
 
template<typename Vec3T >
ValueT operator() (const Vec3T &xyz) const
 
ValueT operator() (const CoordT &ijk) const
 
template<typename Vec3T >
TreeOrAccT::ValueType operator() (const Vec3T &xyz) const
 

Static Public Attributes

static const int ORDER = 0
 

Detailed Description

template<typename TreeOrAccT>
class nanovdb::SampleFromVoxels< TreeOrAccT, 0, true >

Nearest neighbor, i.e. zero order, interpolator with caching.

Member Typedef Documentation

using CoordT = typename TreeOrAccT::CoordType
using ValueT = typename TreeOrAccT::ValueType

Constructor & Destructor Documentation

SampleFromVoxels ( const TreeOrAccT &  acc)
inline

Construction from a Tree or ReadAccessor.

Member Function Documentation

const TreeOrAccT& accessor ( ) const
inline
ValueT operator() ( const Vec3T &  xyz) const
inline
Note
xyz is in index space space
TreeOrAccT::ValueType operator() ( const CoordT ijk) const
inline
TreeOrAccT::ValueType operator() ( const Vec3T &  xyz) const

Member Data Documentation

const int ORDER = 0
static