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

Perform linear interpolation on a grid voxel to sample space. More...

#include <Interpolation.h>

Inherits GridSampling< TreeType >.

Public Types

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

Public Member Functions

OPENVDB_DEPRECATED LinearInterp (const TreeType &tree)
 
virtual ~LinearInterp ()
 
virtual ValueType sampleVoxel (Real x, Real y, Real z) const
 Sample space at a point defined by (x, y, z) in a grid by linear interpolation of values in adjacent voxels. More...
 
const TreeType & tree () const
 
ValueType sampleVoxel (const Vec3R &pt) const
 Sample a point in voxel space in the grid. More...
 

Detailed Description

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

Perform linear interpolation on a grid voxel to sample space.

Member Typedef Documentation

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

Constructor & Destructor Documentation

OPENVDB_DEPRECATED LinearInterp ( const TreeType &  tree)
inlineexplicit
Deprecated:
Use GridSampler<TreeType, openvdb::tools::BoxSampler> instead.
virtual ~LinearInterp ( )
inlinevirtual

Member Function Documentation

ValueType sampleVoxel ( const Vec3R pt) const
inlineinherited

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
inlinevirtual

Sample space at a point defined by (x, y, z) in a grid by linear interpolation of values in adjacent voxels.

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

Implements GridSampling< TreeType >.

const TreeType& tree ( ) const
inlineinherited

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