OpenVDB  5.2.0
Public Types | Public Member Functions | List of all members
DualGridSampler< tree::ValueAccessor< TreeT >, SamplerT > Class Template Reference

Specialization of DualGridSampler for construction from a ValueAccessor type. More...

#include <Interpolation.h>

Public Types

using ValueType = typename TreeT::ValueType
 
using TreeType = TreeT
 
using GridType = Grid< TreeType >
 
using AccessorType = typename tree::ValueAccessor< TreeT >
 

Public Member Functions

 DualGridSampler (const AccessorType &sourceAccessor, const math::Transform &sourceXform, const math::Transform &targetXform)
 ValueAccessor and transform constructor. More...
 
ValueType operator() (const Coord &ijk) const
 Return the value of the source grid at the index coordinates, ijk, relative to the target grid. More...
 
bool isAligned () const
 Return true if the two grids are aligned. More...
 

Detailed Description

template<typename TreeT, typename SamplerT>
class openvdb::v5_2::tools::DualGridSampler< tree::ValueAccessor< TreeT >, SamplerT >

Specialization of DualGridSampler for construction from a ValueAccessor type.

Member Typedef Documentation

using AccessorType = typename tree::ValueAccessor<TreeT>
using TreeType = TreeT
using ValueType = typename TreeT::ValueType

Constructor & Destructor Documentation

DualGridSampler ( const AccessorType sourceAccessor,
const math::Transform sourceXform,
const math::Transform targetXform 
)
inline

ValueAccessor and transform constructor.

Parameters
sourceAccessorValueAccessor into the source grid.
sourceXformTransform for the source grid.
targetXformTransform for the target grid.

Member Function Documentation

bool isAligned ( ) const
inline

Return true if the two grids are aligned.

ValueType operator() ( const Coord &  ijk) const
inline

Return the value of the source grid at the index coordinates, ijk, relative to the target grid.


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