HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered > Struct Template Reference

Provises a unified interface for sampling, i.e. interpolation. More...

#include <Interpolation.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >:

Static Public Member Functions

static const char * name ()
 
static int radius ()
 
static bool mipmap ()
 
static bool consistent ()
 
static bool staggered ()
 
static size_t order ()
 
template<class TreeT >
static bool sample (const TreeT &inTree, const Vec3R &inCoord, typename TreeT::ValueType &result)
 Sample inTree at the floating-point index coordinate inCoord and store the result in result. More...
 
template<class TreeT >
static TreeT::ValueType sample (const TreeT &inTree, const Vec3R &inCoord)
 Sample inTree at the floating-point index coordinate inCoord. More...
 

Detailed Description

template<size_t Order, bool Staggered = false>
struct openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >

Provises a unified interface for sampling, i.e. interpolation.

Order = 0: closest point Order = 1: tri-linear Order = 2: tri-quadratic Staggered: Set to true for MAC grids

Definition at line 90 of file Interpolation.h.

Member Function Documentation

template<size_t Order, bool Staggered = false>
static bool openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >::consistent ( )
static
template<size_t Order, bool Staggered = false>
static bool openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >::mipmap ( )
static
template<size_t Order, bool Staggered = false>
static const char* openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >::name ( )
static
template<size_t Order, bool Staggered = false>
static size_t openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >::order ( )
static
template<size_t Order, bool Staggered = false>
static int openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >::radius ( )
static
template<size_t Order, bool Staggered = false>
template<class TreeT >
static bool openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >::sample ( const TreeT &  inTree,
const Vec3R inCoord,
typename TreeT::ValueType &  result 
)
static

Sample inTree at the floating-point index coordinate inCoord and store the result in result.

Returns
true if the sampled value is active.
template<size_t Order, bool Staggered = false>
template<class TreeT >
static TreeT::ValueType openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >::sample ( const TreeT &  inTree,
const Vec3R inCoord 
)
static

Sample inTree at the floating-point index coordinate inCoord.

Returns
the reconstructed value
template<size_t Order, bool Staggered = false>
static bool openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >::staggered ( )
static

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