C2DInterpolatorFactory Class Reference

The factory to create an interpolator from some input data. More...

#include <mia/2d/interpolator.hh>

Public Member Functions

 C2DInterpolatorFactory (const std::string &kernel, const std::string &boundary_conditions)
 
 C2DInterpolatorFactory (PSplineKernel kernel, const CSplineBoundaryCondition &boundary_conditions)
 
 C2DInterpolatorFactory (PSplineKernel kernel, const std::string &boundary_conditions)
 
 C2DInterpolatorFactory (PSplineKernel kernel, const CSplineBoundaryCondition &xbc, const CSplineBoundaryCondition &ybc)
 
 C2DInterpolatorFactory (const C2DInterpolatorFactory &o)
 Copy constructor. More...
 
template<class T >
T2DInterpolator< T > * create (const T2DDatafield< T > &src) const __attribute__((warn_unused_result))
 
const CSplineKernelget_kernel () const
 
C2DInterpolatorFactoryoperator= (const C2DInterpolatorFactory &o)
 Assignment operator. More...
 
virtual ~C2DInterpolatorFactory ()
 

Detailed Description

The factory to create an interpolator from some input data.

Definition at line 188 of file 2d/interpolator.hh.

Constructor & Destructor Documentation

◆ C2DInterpolatorFactory() [1/5]

C2DInterpolatorFactory::C2DInterpolatorFactory ( const std::string &  kernel,
const std::string &  boundary_conditions 
)

Construct the factory the interpolation kernel and according boundary conditions

Parameters
kerneldescription of the interpolation kernel
boundary_conditionsdescription of the boundary conditions

◆ C2DInterpolatorFactory() [2/5]

C2DInterpolatorFactory::C2DInterpolatorFactory ( PSplineKernel  kernel,
const CSplineBoundaryCondition boundary_conditions 
)

Construct the factory the interpolation kernel and according boundary conditions

Parameters
kernelinterpolation kernel
boundary_conditionsprototype boundary condition

◆ C2DInterpolatorFactory() [3/5]

C2DInterpolatorFactory::C2DInterpolatorFactory ( PSplineKernel  kernel,
const std::string &  boundary_conditions 
)

Construct the factory the interpolation kernel and according boundary conditions

Parameters
kernelinterpolation kernel
boundary_conditionsdescription of the boundary conditions

◆ C2DInterpolatorFactory() [4/5]

C2DInterpolatorFactory::C2DInterpolatorFactory ( PSplineKernel  kernel,
const CSplineBoundaryCondition xbc,
const CSplineBoundaryCondition ybc 
)

Construct the factory the interpolation kernel and according boundary conditions

Parameters
kernel
xbcboundary conditions along the x-axis
ybcboundary conditions along the y-axis

◆ C2DInterpolatorFactory() [5/5]

C2DInterpolatorFactory::C2DInterpolatorFactory ( const C2DInterpolatorFactory o)

Copy constructor.

◆ ~C2DInterpolatorFactory()

virtual C2DInterpolatorFactory::~C2DInterpolatorFactory ( )
virtual

Member Function Documentation

◆ create()

template<class T >
T2DInterpolator< T > * C2DInterpolatorFactory::create ( const T2DDatafield< T > &  src) const

Interpolator creation function

Template Parameters
pixeldata type - can be anything that cann be added to itself and multiplied by a double scalar. The class T must also define the coeff_map trait.
Parameters
srcinput data to interpolate
Returns
the requested interpolator

Definition at line 259 of file 2d/interpolator.hh.

References NS_MIA_END.

Referenced by FDeformer2D::operator()().

◆ get_kernel()

const CSplineKernel* C2DInterpolatorFactory::get_kernel ( ) const
Returns
raw pointer to the interpolation kernel.

◆ operator=()

C2DInterpolatorFactory& C2DInterpolatorFactory::operator= ( const C2DInterpolatorFactory o)

Assignment operator.


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