QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
src
analysis
mesh
qgsmeshcontours.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmeshcontours.h
3
-----------------
4
begin : September 25th, 2019
5
copyright : (C) 2018 by Peter Petrik
6
email : zilolv at gmail dot com
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 QGSMESHCONTOURS_H
19
#define QGSMESHCONTOURS_H
20
21
#include <QMap>
22
#include <QString>
23
#include <QStringList>
24
#include <QVector>
25
#include <QPair>
26
#include <QList>
27
#include <memory>
28
#include <limits>
29
30
#include "
qgsmeshdataprovider.h
"
31
#include "
qgsfeature.h
"
32
#include "qgis_analysis.h"
33
#include "
qgis_sip.h
"
34
#include "
qgstriangularmesh.h
"
35
#include "
qgsmeshrenderersettings.h
"
36
37
class
QgsMeshLayer
;
38
class
QgsPoint
;
39
class
QgsGeometry
;
40
class
QgsFeedback
;
41
50
class
ANALYSIS_EXPORT
QgsMeshContours
51
{
52
public
:
53
59
QgsMeshContours
(
QgsMeshLayer
*layer );
60
~QgsMeshContours
();
61
70
QgsGeometry
exportLines(
const
QgsMeshDatasetIndex
&index,
71
double
value,
72
QgsMeshRendererScalarSettings::DataResamplingMethod
method,
73
QgsFeedback
*feedback =
nullptr
);
74
84
QgsGeometry
exportPolygons(
const
QgsMeshDatasetIndex
&index,
85
double
min_value,
86
double
max_value,
87
QgsMeshRendererScalarSettings::DataResamplingMethod
method,
88
QgsFeedback
*feedback =
nullptr
);
89
90
private
:
91
void
populateCache(
92
const
QgsMeshDatasetIndex
&index,
93
QgsMeshRendererScalarSettings::DataResamplingMethod
method );
94
95
QgsMeshLayer
*mMeshLayer =
nullptr
;
96
97
// cached values for particular index & interpolation method & layer
98
QgsMeshDatasetIndex
mCachedIndex;
99
std::shared_ptr<QgsTriangularMesh> mTriangularMesh;
100
std::shared_ptr<QgsMesh> mNativeMesh;
101
QgsMeshDataBlock
mScalarActiveFaceFlagValues;
102
QVector<double> mDatasetValues;
103
};
104
105
#endif // QGSMESHCONTOURS_H
QgsPoint
Point geometry type, with support for z-dimension and m-values.
Definition:
qgspoint.h:38
qgsfeature.h
QgsMeshContours
Exporter of contours lines or polygons from a mesh layer.
Definition:
qgsmeshcontours.h:51
qgstriangularmesh.h
QgsMeshDatasetIndex
QgsMeshDatasetIndex is index that identifies the dataset group (e.g.
Definition:
qgsmeshdataset.h:47
QgsFeedback
Base class for feedback objects to be used for cancellation of something running in a worker thread.
Definition:
qgsfeedback.h:44
QgsMeshLayer
Represents a mesh layer supporting display of data on structured or unstructured meshes.
Definition:
qgsmeshlayer.h:95
QgsMeshContours::~QgsMeshContours
~QgsMeshContours()
qgis_sip.h
QgsMeshRendererScalarSettings::DataResamplingMethod
DataResamplingMethod
Resampling of value from dataset.
Definition:
qgsmeshrenderersettings.h:106
qgsmeshrenderersettings.h
QgsGeometry
A geometry is the spatial representation of a feature.
Definition:
qgsgeometry.h:124
QgsMeshDataBlock
QgsMeshDataBlock is a block of integers/doubles that can be used to retrieve: active flags (e....
Definition:
qgsmeshdataset.h:136
qgsmeshdataprovider.h
Generated on Sat Oct 24 2020 17:43:09 for QGIS API Documentation by
1.8.20