|
QGIS API Documentation
2.10.1-Pisa
|
Interface class for interpolations. More...
#include <qgsinterpolator.h>

Classes | |
| struct | LayerData |
| A layer together with the information about interpolation attribute / z-coordinate interpolation and the type (point, structure line, breakline) More... | |
Public Types | |
| enum | InputType { POINTS, STRUCTURE_LINES, BREAK_LINES } |
| Describes the type of input data. More... | |
Public Member Functions | |
| QgsInterpolator (const QList< LayerData > &layerData) | |
| virtual | ~QgsInterpolator () |
| virtual int | interpolatePoint (double x, double y, double &result)=0 |
| Calculates interpolation value for map coordinates x, y. More... | |
| const QList< LayerData > & | layerData () const |
Protected Member Functions | |
| int | cacheBaseData () |
| Caches the vertex and value data from the provider. More... | |
Protected Attributes | |
| QVector< vertexData > | mCachedBaseData |
| bool | mDataIsCached |
| Flag that tells if the cache already has been filled. More... | |
| QList< LayerData > | mLayerData |
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
Definition at line 36 of file qgsinterpolator.h.
Describes the type of input data.
| Enumerator | |
|---|---|
| POINTS | |
| STRUCTURE_LINES | |
| BREAK_LINES | |
Definition at line 40 of file qgsinterpolator.h.
Definition at line 24 of file qgsinterpolator.cpp.
|
virtual |
Definition at line 37 of file qgsinterpolator.cpp.
|
protected |
Caches the vertex and value data from the provider.
All the vertex data will be held in virtual memory
Definition at line 42 of file qgsinterpolator.cpp.
|
pure virtual |
Calculates interpolation value for map coordinates x, y.
| x | x-coordinate (in map units) |
| y | y-coordinate (in map units) |
| result | out: interpolation result |
Implemented in QgsTINInterpolator, and QgsIDWInterpolator.
Definition at line 68 of file qgsinterpolator.h.
|
protected |
Definition at line 76 of file qgsinterpolator.h.
|
protected |
Flag that tells if the cache already has been filled.
Definition at line 79 of file qgsinterpolator.h.
Definition at line 82 of file qgsinterpolator.h.
1.8.6