QGIS API Documentation  2.99.0-Master (ef89a62)
Public Types | Public Member Functions | List of all members
QgsTINInterpolator Class Reference

Interpolation in a triangular irregular network. More...

#include <qgstininterpolator.h>

Inheritance diagram for QgsTINInterpolator:
Inheritance graph

Public Types

enum  TINInterpolation { Linear, CloughTocher }
- Public Types inherited from QgsInterpolator
 Describes the type of input data. More...

Public Member Functions

 QgsTINInterpolator (const QList< QgsInterpolator::LayerData > &inputData, TINInterpolation interpolation=Linear, QgsFeedback *feedback=nullptr)
 Constructor for QgsTINInterpolator. More...
 ~QgsTINInterpolator ()
int interpolatePoint (double x, double y, double &result) override
 Calculates interpolation value for map coordinates x, y. More...
void setExportTriangulationToFile (bool e)
void setTriangulationFilePath (const QString &filepath)
- Public Member Functions inherited from QgsInterpolator
 QgsInterpolator (const QList< QgsInterpolator::LayerData > &layerData)
virtual ~QgsInterpolator ()=default
QList< LayerDatalayerData () const

Additional Inherited Members

- 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

Interpolation in a triangular irregular network.

Definition at line 32 of file qgstininterpolator.h.

Member Enumeration Documentation

◆ TINInterpolation


Definition at line 36 of file qgstininterpolator.h.

Constructor & Destructor Documentation

◆ QgsTINInterpolator()

QgsTINInterpolator::QgsTINInterpolator ( const QList< QgsInterpolator::LayerData > &  inputData,
TINInterpolation  interpolation = Linear,
QgsFeedback feedback = nullptr 

Constructor for QgsTINInterpolator.

The feedback object specifies an optional QgsFeedback object for progress reports and cancelation support. Ownership of feedback is not transferred and callers must ensure that it exists for the lifetime of this object.

Definition at line 33 of file qgstininterpolator.cpp.

◆ ~QgsTINInterpolator()

QgsTINInterpolator::~QgsTINInterpolator ( )

Definition at line 44 of file qgstininterpolator.cpp.

Member Function Documentation

◆ interpolatePoint()

int QgsTINInterpolator::interpolatePoint ( double  x,
double  y,
double &  result 

Calculates interpolation value for map coordinates x, y.

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

Implements QgsInterpolator.

Definition at line 50 of file qgstininterpolator.cpp.

◆ setExportTriangulationToFile()

void QgsTINInterpolator::setExportTriangulationToFile ( bool  e)

Definition at line 57 of file qgstininterpolator.h.

◆ setTriangulationFilePath()

void QgsTINInterpolator::setTriangulationFilePath ( const QString &  filepath)

Definition at line 58 of file qgstininterpolator.h.

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