QGIS API Documentation  2.6.0-Brighton
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
[legend]

Public Types

enum  TIN_INTERPOLATION { Linear, CloughTocher }
- Public Types inherited from QgsInterpolator
enum  InputType { POINTS, STRUCTURE_LINES, BREAK_LINES }
 Describes the type of input data. More...

Public Member Functions

 QgsTINInterpolator (const QList< LayerData > &inputData, TIN_INTERPOLATION interpolation=Linear, bool showProgressDialog=false)
 ~QgsTINInterpolator ()
int interpolatePoint (double x, double y, double &result)
 Calculates interpolation value for map coordinates x, y.
void setExportTriangulationToFile (bool e)
void setTriangulationFilePath (const QString &filepath)
- Public Member Functions inherited from QgsInterpolator
 QgsInterpolator (const QList< LayerData > &layerData)
virtual ~QgsInterpolator ()
const QList< LayerData > & layerData () const

Additional Inherited Members

- Protected Member Functions inherited from QgsInterpolator
int cacheBaseData ()
 Caches the vertex and value data from the provider.
- Protected Attributes inherited from QgsInterpolator
QVector< vertexDatamCachedBaseData
bool mDataIsCached
 Flag that tells if the cache already has been filled.
QList< LayerDatamLayerData

Detailed Description

Interpolation in a triangular irregular network.

Member Enumeration Documentation

Enumerator:
Linear 
CloughTocher 

Constructor & Destructor Documentation

QgsTINInterpolator::QgsTINInterpolator ( const QList< LayerData > &  inputData,
TIN_INTERPOLATION  interpolation = Linear,
bool  showProgressDialog = false 
)
QgsTINInterpolator::~QgsTINInterpolator ( )

Member Function Documentation

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

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.

void QgsTINInterpolator::setExportTriangulationToFile ( bool  e)
inline
void QgsTINInterpolator::setTriangulationFilePath ( const QString &  filepath)
inline

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