HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::TrilinearSampler< TreeOrAccT > Class Template Reference

Tri-linear sampler, i.e. first order, interpolator. More...

#include <SampleFromVoxels.h>

+ Inheritance diagram for nanovdb::TrilinearSampler< TreeOrAccT >:

Public Types

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

Public Member Functions

__hostdev__ TrilinearSampler (const TreeOrAccT &acc)
 Protected constructor from a Tree or ReadAccessor. More...
 
__hostdev__ const TreeOrAccT & accessor () const
 
__hostdev__ void stencil (CoordT &ijk, ValueT(&v)[2][2][2]) const
 Extract the stencil of 8 values. More...
 
template<typename RealT , template< typename...> class Vec3T>
__hostdev__ TreeOrAccT::ValueType sample (const Vec3T< RealT > &uvw, const ValueT(&v)[2][2][2])
 
template<typename RealT , template< typename...> class Vec3T>
__hostdev__ Vec3T< typename
TreeOrAccT::ValueType > 
gradient (const Vec3T< RealT > &uvw, const ValueT(&v)[2][2][2])
 

Static Public Member Functions

template<typename RealT , template< typename...> class Vec3T>
static __hostdev__ ValueT sample (const Vec3T< RealT > &uvw, const ValueT(&v)[2][2][2])
 
template<typename RealT , template< typename...> class Vec3T>
static __hostdev__ Vec3T< ValueTgradient (const Vec3T< RealT > &uvw, const ValueT(&v)[2][2][2])
 
static __hostdev__ bool zeroCrossing (const ValueT(&v)[2][2][2])
 

Static Public Attributes

static const int ORDER = 1
 

Protected Attributes

const TreeOrAccT & mAcc
 

Detailed Description

template<typename TreeOrAccT>
class nanovdb::TrilinearSampler< TreeOrAccT >

Tri-linear sampler, i.e. first order, interpolator.

Definition at line 170 of file SampleFromVoxels.h.

Member Typedef Documentation

template<typename TreeOrAccT >
using nanovdb::TrilinearSampler< TreeOrAccT >::CoordT = typename TreeOrAccT::CoordType

Definition at line 177 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
using nanovdb::TrilinearSampler< TreeOrAccT >::ValueT = typename TreeOrAccT::ValueType

Definition at line 176 of file SampleFromVoxels.h.

Constructor & Destructor Documentation

template<typename TreeOrAccT >
__hostdev__ nanovdb::TrilinearSampler< TreeOrAccT >::TrilinearSampler ( const TreeOrAccT &  acc)
inline

Protected constructor from a Tree or ReadAccessor.

Definition at line 181 of file SampleFromVoxels.h.

Member Function Documentation

template<typename TreeOrAccT >
__hostdev__ const TreeOrAccT& nanovdb::TrilinearSampler< TreeOrAccT >::accessor ( ) const
inline

Definition at line 183 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
template<typename RealT , template< typename...> class Vec3T>
static __hostdev__ Vec3T<ValueT> nanovdb::TrilinearSampler< TreeOrAccT >::gradient ( const Vec3T< RealT > &  uvw,
const ValueT(&)  v[2][2][2] 
)
inlinestatic
template<typename TreeOrAccT >
template<typename RealT , template< typename...> class Vec3T>
__hostdev__ Vec3T<typename TreeOrAccT::ValueType> nanovdb::TrilinearSampler< TreeOrAccT >::gradient ( const Vec3T< RealT > &  uvw,
const ValueT(&)  v[2][2][2] 
)

Definition at line 242 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
template<typename RealT , template< typename...> class Vec3T>
static __hostdev__ ValueT nanovdb::TrilinearSampler< TreeOrAccT >::sample ( const Vec3T< RealT > &  uvw,
const ValueT(&)  v[2][2][2] 
)
inlinestatic
template<typename TreeOrAccT >
template<typename RealT , template< typename...> class Vec3T>
__hostdev__ TreeOrAccT::ValueType nanovdb::TrilinearSampler< TreeOrAccT >::sample ( const Vec3T< RealT > &  uvw,
const ValueT(&)  v[2][2][2] 
)

Definition at line 227 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
__hostdev__ void nanovdb::TrilinearSampler< TreeOrAccT >::stencil ( CoordT ijk,
ValueT(&)  v[2][2][2] 
) const
inline

Extract the stencil of 8 values.

Definition at line 198 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
__hostdev__ bool nanovdb::TrilinearSampler< TreeOrAccT >::zeroCrossing ( const ValueT(&)  v[2][2][2])
inlinestatic

Definition at line 273 of file SampleFromVoxels.h.

Member Data Documentation

template<typename TreeOrAccT >
const TreeOrAccT& nanovdb::TrilinearSampler< TreeOrAccT >::mAcc
protected

Definition at line 173 of file SampleFromVoxels.h.

template<typename TreeOrAccT >
const int nanovdb::TrilinearSampler< TreeOrAccT >::ORDER = 1
static

Definition at line 178 of file SampleFromVoxels.h.


The documentation for this class was generated from the following file: