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< Order, Staggered >.
|
using | ValueT = typename TreeT::ValueType |
|
|
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...
|
|
template<typename Sampler, typename TreeT>
class openvdb::v5_2::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.
◆ ValueT
using ValueT = typename TreeT::ValueType |
◆ TileSampler()
- Parameters
-
b | the index-space bounding box of a particular grid tile |
tileVal | the tile's value |
on | the tile's active state |
◆ consistent()
static bool consistent |
( |
| ) |
|
|
staticinherited |
◆ mipmap()
◆ name()
static const char* name |
( |
| ) |
|
|
staticinherited |
◆ order()
◆ radius()
◆ sample() [1/3]
static bool sample |
( |
const TreeT & |
inTree, |
|
|
const Vec3R & |
inCoord, |
|
|
typename TreeT::ValueType & |
result |
|
) |
| |
|
staticinherited |
Sample inTree at the floating-point index coordinate inCoord and store the result in result.
- Returns
true
if the sampled value is active.
◆ sample() [2/3]
static TreeT::ValueType sample |
( |
const TreeT & |
inTree, |
|
|
const Vec3R & |
inCoord |
|
) |
| |
|
staticinherited |
Sample inTree at the floating-point index coordinate inCoord.
- Returns
- the reconstructed value
◆ sample() [3/3]
bool sample |
( |
const TreeT & |
inTree, |
|
|
const Vec3R & |
inCoord, |
|
|
ValueT & |
result |
|
) |
| const |
|
inline |
◆ staggered()
static bool staggered |
( |
| ) |
|
|
staticinherited |
◆ mActive
◆ mBBox
◆ mEmpty
◆ mVal
The documentation for this class was generated from the following file: