OpenVDB  0.104.0
Public Types | Public Member Functions | List of all members
GridSampling< TreeType > Class Template Referenceabstract

Base class that provides the interface for continuous sampling of values in a grid. More...

#include <Interpolation.h>

Inherited by LinearInterp< TreeType >, and QuadraticInterp< TreeType >.

Public Types

typedef boost::shared_ptr
< GridSampling
Ptr
 
typedef TreeType::ValueType ValueType
 
typedef tree::ValueAccessor
< const TreeType > 
ConstAccessor
 

Public Member Functions

 GridSampling (const TreeType &tree)
 Constructor. More...
 
virtual ~GridSampling ()
 Destructor. More...
 
const TreeType & tree () const
 
ValueType sampleVoxel (const Vec3R &pt) const
 Sample a point in voxel space in the grid. More...
 
virtual ValueType sampleVoxel (Real x, Real y, Real z) const =0
 Sample a point in voxel space in the grid. More...
 

Detailed Description

template<typename TreeType>
class openvdb::v0_104_0::tools::GridSampling< TreeType >

Base class that provides the interface for continuous sampling of values in a grid.

Since grids support only discrete voxel sampling, GridSampling must be used to sample arbitrary continuous points in space.

Deprecated:
Use GridSampler instead.

Member Typedef Documentation

typedef tree::ValueAccessor<const TreeType> ConstAccessor
typedef boost::shared_ptr<GridSampling> Ptr
typedef TreeType::ValueType ValueType

Constructor & Destructor Documentation

GridSampling ( const TreeType &  tree)
inlineexplicit

Constructor.

virtual ~GridSampling ( )
inlinevirtual

Destructor.

Member Function Documentation

ValueType sampleVoxel ( const Vec3R pt) const
inline

Sample a point in voxel space in the grid.

Parameters
ptthe grid point to be sampled, in voxel coordinates
virtual ValueType sampleVoxel ( Real  x,
Real  y,
Real  z 
) const
pure virtual

Sample a point in voxel space in the grid.

Parameters
xx-coordinate of point in voxel-coordinates of grid
yy-coordinate of point in voxel-coordinates of grid
zz-coordinate of point in voxel-coordinates of grid

Implemented in QuadraticInterp< TreeType >, and LinearInterp< TreeType >.

const TreeType& tree ( ) const
inline

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