QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Exporter of contours lines or polygons from a mesh layer. More...
#include <qgsmeshcontours.h>
Public Member Functions | |
QgsMeshContours (QgsMeshLayer *layer) | |
Constructs the mesh contours exporter. More... | |
~QgsMeshContours () | |
QgsGeometry | exportLines (const QgsMeshDatasetIndex &index, double value, QgsMeshRendererScalarSettings::DataResamplingMethod method, QgsFeedback *feedback=nullptr) |
Exports multi line string containing the contour line for particular dataset and value. More... | |
QgsGeometry | exportPolygons (const QgsMeshDatasetIndex &index, double min_value, double max_value, QgsMeshRendererScalarSettings::DataResamplingMethod method, QgsFeedback *feedback=nullptr) |
Exports multi polygons representing the areas with values in range for particular dataset. More... | |
Exporter of contours lines or polygons from a mesh layer.
Definition at line 50 of file qgsmeshcontours.h.
QgsMeshContours::QgsMeshContours | ( | QgsMeshLayer * | layer | ) |
Constructs the mesh contours exporter.
Caches the native and triangular mesh from data provider
layer | mesh layer to be associated with this exporter |
Definition at line 38 of file qgsmeshcontours.cpp.
|
default |
QgsGeometry QgsMeshContours::exportLines | ( | const QgsMeshDatasetIndex & | index, |
double | value, | ||
QgsMeshRendererScalarSettings::DataResamplingMethod | method, | ||
QgsFeedback * | feedback = nullptr |
||
) |
Exports multi line string containing the contour line for particular dataset and value.
index | dataset index |
value | value of the contour line |
method | for datasets defined on faces, the method will be used to convert data to vertices |
feedback | optional feedback object for progress and cancellation support |
Definition at line 255 of file qgsmeshcontours.cpp.
QgsGeometry QgsMeshContours::exportPolygons | ( | const QgsMeshDatasetIndex & | index, |
double | min_value, | ||
double | max_value, | ||
QgsMeshRendererScalarSettings::DataResamplingMethod | method, | ||
QgsFeedback * | feedback = nullptr |
||
) |
Exports multi polygons representing the areas with values in range for particular dataset.
index | dataset index |
min_value | minimum of the value interval for contour polygon |
max_value | maximum of the value interval for contour polygon |
method | for datasets defined on faces, the method will be used to convert data to vertices |
feedback | optional feedback object for progress and cancellation support |
Definition at line 57 of file qgsmeshcontours.cpp.