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

Nearest neighbor, i.e. zero order, interpolator without 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, false >

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

Member Typedef Documentation

◆ CoordT

using CoordT = typename TreeOrAccT::CoordType

◆ ValueT

using ValueT = typename TreeOrAccT::ValueType

Constructor & Destructor Documentation

◆ SampleFromVoxels()

SampleFromVoxels ( const TreeOrAccT &  acc)
inline

Construction from a Tree or ReadAccessor.

Member Function Documentation

◆ accessor()

const TreeOrAccT & accessor ( ) const
inline

◆ operator()() [1/3]

ValueT operator() ( const CoordT ijk) const
inline

◆ operator()() [2/3]

ValueT operator() ( const Vec3T &  xyz) const
inline
Note
xyz is in index space space

◆ operator()() [3/3]

TreeOrAccT::ValueType operator() ( const Vec3T &  xyz) const

Member Data Documentation

◆ ORDER

const int ORDER = 0
static