HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler Struct Reference

#include <Interpolation.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler:

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)
 Trilinearly reconstruct inTree at inCoord and store the result in result. More...
 
template<class TreeT >
static TreeT::ValueType sample (const TreeT &inTree, const Vec3R &inCoord)
 Trilinearly reconstruct inTree at inCoord. More...
 
template<class ValueT , class TreeT , size_t N>
static void getValues (ValueT(&data)[N][N][N], const TreeT &inTree, Coord ijk)
 Import all eight values from inTree to support tri-linear interpolation. More...
 
template<class ValueT , class TreeT , size_t N>
static bool probeValues (ValueT(&data)[N][N][N], const TreeT &inTree, Coord ijk)
 Import all eight values from inTree to support tri-linear interpolation. More...
 
template<class ValueT , size_t N>
static void extrema (ValueT(&data)[N][N][N], ValueT &vMin, ValueT &vMax)
 Find the minimum and maximum values of the eight cell values in @ data. More...
 
template<class ValueT , size_t N>
static ValueT trilinearInterpolation (ValueT(&data)[N][N][N], const Vec3R &uvw)
 

Detailed Description

Definition at line 146 of file Interpolation.h.

Member Function Documentation

static bool openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::consistent ( )
inlinestatic

Definition at line 151 of file Interpolation.h.

template<class ValueT , size_t N>
void openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::extrema ( ValueT(&)  data[N][N][N],
ValueT &  vMin,
ValueT &  vMax 
)
inlinestatic

Find the minimum and maximum values of the eight cell values in @ data.

Definition at line 717 of file Interpolation.h.

template<class ValueT , class TreeT , size_t N>
void openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::getValues ( ValueT(&)  data[N][N][N],
const TreeT &  inTree,
Coord  ijk 
)
inlinestatic

Import all eight values from inTree to support tri-linear interpolation.

Definition at line 656 of file Interpolation.h.

static bool openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::mipmap ( )
inlinestatic

Definition at line 150 of file Interpolation.h.

static const char* openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::name ( void  )
inlinestatic

Definition at line 148 of file Interpolation.h.

static size_t openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::order ( )
inlinestatic

Definition at line 153 of file Interpolation.h.

template<class ValueT , class TreeT , size_t N>
bool openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::probeValues ( ValueT(&)  data[N][N][N],
const TreeT &  inTree,
Coord  ijk 
)
inlinestatic

Import all eight values from inTree to support tri-linear interpolation.

Returns
true if any of the eight values are active

Definition at line 685 of file Interpolation.h.

static int openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::radius ( void  )
inlinestatic

Definition at line 149 of file Interpolation.h.

template<class TreeT >
bool openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::sample ( const TreeT &  inTree,
const Vec3R inCoord,
typename TreeT::ValueType &  result 
)
inlinestatic

Trilinearly reconstruct inTree at inCoord and store the result in result.

Returns
true if any one of the sampled values is active.

Definition at line 763 of file Interpolation.h.

template<class TreeT >
TreeT::ValueType openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::sample ( const TreeT &  inTree,
const Vec3R inCoord 
)
inlinestatic

Trilinearly reconstruct inTree at inCoord.

Returns
the reconstructed value

Definition at line 785 of file Interpolation.h.

static bool openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::staggered ( )
inlinestatic

Definition at line 152 of file Interpolation.h.

template<class ValueT , size_t N>
ValueT openvdb::OPENVDB_VERSION_NAME::tools::BoxSampler::trilinearInterpolation ( ValueT(&)  data[N][N][N],
const Vec3R uvw 
)
inlinestatic
Returns
the tri-linear interpolation with the unit cell coordinates uvw

Definition at line 739 of file Interpolation.h.


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