HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT > Class Template Reference

A TileSampler wraps a grid sampler of another type (BoxSampler, QuadraticSampler, etc.), and for samples that fall within a given tile of the grid, it returns a cached tile value instead of accessing the grid. More...

#include <GridTransformer.h>

+ Inheritance diagram for openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >:

Public Types

using ValueT = typename TreeT::ValueType
 

Public Member Functions

 TileSampler (const CoordBBox &b, const ValueT &tileVal, bool on)
 
bool sample (const TreeT &inTree, const Vec3R &inCoord, ValueT &result) const
 

Protected Attributes

BBoxd mBBox
 
ValueT mVal
 
bool mActive
 
bool mEmpty
 

Additional Inherited Members

- Static Public Member Functions inherited from openvdb::OPENVDB_VERSION_NAME::tools::Sampler< Order, Staggered >
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<typename Sampler, typename TreeT>
class openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >

A TileSampler wraps a grid sampler of another type (BoxSampler, QuadraticSampler, etc.), and for samples that fall within a given tile of the grid, it returns a cached tile value instead of accessing the grid.

Definition at line 118 of file GridTransformer.h.

Member Typedef Documentation

template<typename Sampler , typename TreeT >
using openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >::ValueT = typename TreeT::ValueType

Definition at line 121 of file GridTransformer.h.

Constructor & Destructor Documentation

template<typename Sampler , typename TreeT >
openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >::TileSampler ( const CoordBBox &  b,
const ValueT tileVal,
bool  on 
)
inline
Parameters
bthe index-space bounding box of a particular grid tile
tileValthe tile's value
onthe tile's active state

Definition at line 126 of file GridTransformer.h.

Member Function Documentation

template<typename Sampler , typename TreeT >
bool openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >::sample ( const TreeT &  inTree,
const Vec3R inCoord,
ValueT result 
) const
inline

Definition at line 133 of file GridTransformer.h.

Member Data Documentation

template<typename Sampler , typename TreeT >
bool openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >::mActive
protected

Definition at line 142 of file GridTransformer.h.

template<typename Sampler , typename TreeT >
BBoxd openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >::mBBox
protected

Definition at line 140 of file GridTransformer.h.

template<typename Sampler , typename TreeT >
bool openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >::mEmpty
protected

Definition at line 142 of file GridTransformer.h.

template<typename Sampler , typename TreeT >
ValueT openvdb::OPENVDB_VERSION_NAME::tools::internal::TileSampler< Sampler, TreeT >::mVal
protected

Definition at line 141 of file GridTransformer.h.


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