QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | List of all members
QgsIDWInterpolator Class Reference

#include <qgsidwinterpolator.h>

Inheritance diagram for QgsIDWInterpolator:
Inheritance graph
[legend]

Public Member Functions

 QgsIDWInterpolator (const QList< LayerData > &layerData)
 
 ~QgsIDWInterpolator ()
 
int interpolatePoint (double x, double y, double &result) override
 Calculates interpolation value for map coordinates x, y. More...
 
void setDistanceCoefficient (double p)
 
- Public Member Functions inherited from QgsInterpolator
 QgsInterpolator (const QList< LayerData > &layerData)
 
virtual ~QgsInterpolator ()
 
const QList< LayerData > & layerData () const
 

Additional Inherited Members

- Public Types inherited from QgsInterpolator
enum  InputType { POINTS, STRUCTURE_LINES, BREAK_LINES }
 Describes the type of input data. More...
 
- Protected Member Functions inherited from QgsInterpolator
int cacheBaseData ()
 Caches the vertex and value data from the provider. More...
 
- Protected Attributes inherited from QgsInterpolator
QVector< vertexDatamCachedBaseData
 
bool mDataIsCached
 Flag that tells if the cache already has been filled. More...
 
QList< LayerDatamLayerData
 

Detailed Description

Definition at line 26 of file qgsidwinterpolator.h.

Constructor & Destructor Documentation

◆ QgsIDWInterpolator()

QgsIDWInterpolator::QgsIDWInterpolator ( const QList< LayerData > &  layerData)

Definition at line 22 of file qgsidwinterpolator.cpp.

◆ ~QgsIDWInterpolator()

QgsIDWInterpolator::~QgsIDWInterpolator ( )

Definition at line 32 of file qgsidwinterpolator.cpp.

Member Function Documentation

◆ interpolatePoint()

int QgsIDWInterpolator::interpolatePoint ( double  x,
double  y,
double &  result 
)
overridevirtual

Calculates interpolation value for map coordinates x, y.

Parameters
xx-coordinate (in map units)
yy-coordinate (in map units)
resultout: interpolation result
Returns
0 in case of success

Implements QgsInterpolator.

Definition at line 37 of file qgsidwinterpolator.cpp.

◆ setDistanceCoefficient()

void QgsIDWInterpolator::setDistanceCoefficient ( double  p)
inline

Definition at line 39 of file qgsidwinterpolator.h.


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