QGIS/python/analysis/interpolation/qgsinterpolator.sip

84 lines
2.2 KiB
Plaintext
Raw Normal View History

2017-06-22 20:25:19 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/interpolation/qgsinterpolator.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
struct vertexData
{
double x;
double y;
double z;
};
class QgsInterpolator
{
2017-06-22 20:25:19 +02:00
%Docstring
Interface class for interpolations. Interpolators take
the vertices of a vector layer as base data. The z-Value
can be an attribute or the z-coordinates in case of 25D types*
%End
%TypeHeaderCode
#include "qgsinterpolator.h"
%End
public:
enum InputType
{
POINTS,
STRUCTURE_LINES,
BREAK_LINES
};
struct LayerData
{
QgsVectorLayer *vectorLayer;
bool zCoordInterpolation;
int interpolationAttribute;
2012-09-29 16:18:45 +02:00
QgsInterpolator::InputType mInputType;
};
QgsInterpolator( const QList<QgsInterpolator::LayerData> &layerData );
virtual ~QgsInterpolator();
virtual int interpolatePoint( double x, double y, double &result ) = 0;
2017-06-22 20:25:19 +02:00
%Docstring
Calculates interpolation value for map coordinates x, y
\param x x-coordinate (in map units)
\param y y-coordinate (in map units)
\param result out: interpolation result
:return: 0 in case of success*
:rtype: int
%End
2014-05-27 23:22:50 +02:00
protected:
2017-06-22 20:25:19 +02:00
int cacheBaseData();
2017-06-22 20:25:19 +02:00
%Docstring
Caches the vertex and value data from the provider. All the vertex data
will be held in virtual memory
:return: 0 in case of success*
:rtype: int
%End
};
2017-06-22 20:25:19 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/interpolation/qgsinterpolator.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/