OpenVDB  1.2.0
Public Types | Public Member Functions | Protected Attributes | List of all members
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>

Inherits Sampler.

Public Types

typedef TreeT::ValueType ValueT
 

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
 

Detailed Description

template<typename Sampler, typename TreeT>
class openvdb::v1_2_0::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.

Member Typedef Documentation

typedef TreeT::ValueType ValueT

Constructor & Destructor Documentation

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

Member Function Documentation

bool sample ( const TreeT &  inTree,
const Vec3R inCoord,
ValueT result 
) const
inline

Member Data Documentation

bool mActive
protected
BBoxd mBBox
protected
bool mEmpty
protected
ValueT mVal
protected

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