2017-06-22 20:25:19 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/interpolation/qgsidwinterpolator.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
class QgsIDWInterpolator: QgsInterpolator
|
|
|
|
{
|
2017-11-02 19:45:17 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Inverse distance weight interpolator.
|
2017-11-02 19:45:17 +10:00
|
|
|
%End
|
2017-06-22 20:25:19 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
%TypeHeaderCode
|
2017-06-22 20:25:19 +02:00
|
|
|
#include "qgsidwinterpolator.h"
|
2012-09-24 02:28:15 +02:00
|
|
|
%End
|
|
|
|
public:
|
2017-11-02 19:45:17 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsIDWInterpolator( const QList<QgsInterpolator::LayerData> &layerData );
|
2017-11-02 19:45:17 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsIDWInterpolator, with the specified ``layerData`` sources.
|
2017-11-02 19:45:17 +10:00
|
|
|
%End
|
|
|
|
|
2017-12-17 07:52:05 -04:00
|
|
|
virtual int interpolatePoint( double x, double y, double &result /Out/, QgsFeedback *feedback = 0 );
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-06-22 20:25:19 +02:00
|
|
|
|
2017-11-02 19:45:17 +10:00
|
|
|
void setDistanceCoefficient( double coefficient );
|
2017-06-22 20:25:19 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the distance ``coefficient``, the parameter that sets how the values are
|
|
|
|
weighted with distance. Smaller values mean sharper peaks at the data points.
|
2017-11-02 19:45:17 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
Point values are weighted by 1 / ( distance ^ coefficient ).
|
2017-11-02 19:45:17 +10:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`distanceCoefficient`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-11-02 19:45:17 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-06-22 20:25:19 +02:00
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
|
2017-11-02 19:45:17 +10:00
|
|
|
double distanceCoefficient() const;
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the distance coefficient, the parameter that sets how the values are
|
|
|
|
weighted with distance. Smaller values mean sharper peaks at the data points.
|
|
|
|
The default is a coefficient of 2.
|
|
|
|
|
|
|
|
Point values are weighted by 1 / ( distance ^ coefficient ).
|
2017-11-02 19:45:17 +10:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setDistanceCoefficient`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2017-11-02 19:45:17 +10:00
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
2017-06-22 20:25:19 +02:00
|
|
|
|
2012-09-24 02:28:15 +02:00
|
|
|
};
|
2017-06-22 20:25:19 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/analysis/interpolation/qgsidwinterpolator.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|