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

Tri-quadratic sampler, i.e. second order, interpolator. More...

#include <SampleFromVoxels.h>

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

Public Types

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

Public Member Functions

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

Static Public Member Functions

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

Static Public Attributes

static const int ORDER = 1
 

Protected Attributes

const TreeOrAccT & mAcc
 

Detailed Description

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

Tri-quadratic sampler, i.e. second order, interpolator.

Definition at line 488 of file SampleFromVoxels.h.

Member Typedef Documentation

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

Definition at line 495 of file SampleFromVoxels.h.

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

Definition at line 494 of file SampleFromVoxels.h.

Constructor & Destructor Documentation

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

Protected constructor from a Tree or ReadAccessor.

Definition at line 499 of file SampleFromVoxels.h.

Member Function Documentation

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

Definition at line 501 of file SampleFromVoxels.h.

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

Definition at line 529 of file SampleFromVoxels.h.

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

Extract the stencil of 27 values.

Definition at line 513 of file SampleFromVoxels.h.

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

Definition at line 548 of file SampleFromVoxels.h.

Member Data Documentation

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

Definition at line 491 of file SampleFromVoxels.h.

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

Definition at line 496 of file SampleFromVoxels.h.


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