QGIS API Documentation
3.14.0-Pi (9f7028fd23)
src
analysis
interpolation
qgstininterpolator.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgstininterpolator.h
3
--------------------
4
begin : March 10, 2008
5
copyright : (C) 2008 by Marco Hugentobler
6
email : marco dot hugentobler at karto dot baug dot ethz dot ch
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#ifndef QGSTININTERPOLATOR_H
19
#define QGSTININTERPOLATOR_H
20
21
#include "
qgsinterpolator.h
"
22
#include <QString>
23
#include "qgis_analysis.h"
24
25
class
QgsFeatureSink
;
26
class
Triangulation
;
27
class
TriangleInterpolator
;
28
class
QgsFeature
;
29
class
QgsFeedback
;
30
class
QgsFields
;
31
37
class
ANALYSIS_EXPORT
QgsTinInterpolator
:
public
QgsInterpolator
38
{
39
public
:
40
42
enum
TinInterpolation
43
{
44
Linear
,
45
CloughTocher
,
46
};
47
53
QgsTinInterpolator
(
const
QList<QgsInterpolator::LayerData> &inputData, TinInterpolation interpolation = Linear,
QgsFeedback
*feedback =
nullptr
);
54
~
QgsTinInterpolator
()
override
;
55
56
int
interpolatePoint
(
double
x,
double
y,
double
&result
SIP_OUT
,
QgsFeedback
*feedback )
override
;
57
65
static
QgsFields
triangulationFields();
66
76
void
setTriangulationSink(
QgsFeatureSink
*sink );
77
78
private
:
79
Triangulation
*mTriangulation =
nullptr
;
80
TriangleInterpolator
*mTriangleInterpolator =
nullptr
;
81
bool
mIsInitialized;
82
QgsFeedback
*mFeedback =
nullptr
;
83
85
QgsFeatureSink
*mTriangulationSink =
nullptr
;
87
TinInterpolation mInterpolation;
88
90
void
initialize();
91
100
int
insertData(
const
QgsFeature
&f,
QgsInterpolator::ValueSource
source,
int
attr, SourceType type );
101
102
int
addPointsFromGeometry(
const
QgsGeometry
&g, ValueSource source,
double
attributeValue );
103
};
104
105
#endif
QgsInterpolator::interpolatePoint
virtual int interpolatePoint(double x, double y, double &result, QgsFeedback *feedback=nullptr)=0
Calculates interpolation value for map coordinates x, y.
QgsTinInterpolator::CloughTocher
@ CloughTocher
Clough-Tocher interpolation.
Definition:
qgstininterpolator.h:45
qgsinterpolator.h
SIP_OUT
#define SIP_OUT
Definition:
qgis_sip.h:58
Triangulation
Definition:
Triangulation.h:38
QgsFields
Definition:
qgsfields.h:44
QgsInterpolator
Definition:
qgsinterpolator.h:66
QgsTinInterpolator::Linear
@ Linear
Linear interpolation.
Definition:
qgstininterpolator.h:44
QgsInterpolator::ValueSource
ValueSource
Source for interpolated values from features.
Definition:
qgsinterpolator.h:79
QgsTinInterpolator::TinInterpolation
TinInterpolation
Indicates the type of interpolation to be performed.
Definition:
qgstininterpolator.h:42
QgsFeedback
Definition:
qgsfeedback.h:43
QgsGeometry
Definition:
qgsgeometry.h:122
QgsFeature
Definition:
qgsfeature.h:55
QgsFeatureSink
Definition:
qgsfeaturesink.h:33
TriangleInterpolator
Definition:
TriangleInterpolator.h:34
QgsTinInterpolator
Definition:
qgstininterpolator.h:37
Generated on Mon Jun 22 2020 05:14:09 for QGIS API Documentation by
1.8.17