QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Exporter of contours lines or polygons from a mesh layer. More...
#include <qgsmeshcontours.h>
Public Member Functions | |
QgsMeshContours (const QgsTriangularMesh &triangularMesh, const QgsMesh &nativeMesh, const QVector< double > &datasetValues, const QgsMeshDataBlock scalarActiveFaceFlagValues) | |
Constructs the mesh contours exporter directly with triangular mesh and dataset values to populate the cache with them. | |
QgsMeshContours (QgsMeshLayer *layer) | |
Constructs the mesh contours exporter. | |
~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. | |
QgsGeometry | exportLines (double value, QgsFeedback *feedback=nullptr) |
Exports multi line string containing the contour line for particular value using the data stored in the cache. | |
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. | |
QgsGeometry | exportPolygons (double min_value, double max_value, QgsFeedback *feedback=nullptr) |
Exports multi polygons representing the areas with values in range using the data stored in the cache. | |
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.
QgsMeshContours::QgsMeshContours | ( | const QgsTriangularMesh & | triangularMesh, |
const QgsMesh & | nativeMesh, | ||
const QVector< double > & | datasetValues, | ||
const QgsMeshDataBlock | scalarActiveFaceFlagValues | ||
) |
Constructs the mesh contours exporter directly with triangular mesh and dataset values to populate the cache with them.
The cache can't be changed. This instance can be used in a thread safe way.
triangularMesh | triangular mesh of the meshlayer |
nativeMesh | the native mesh of the mesh layer |
datasetValues | the dataset values to used for creating contours defined on vertices |
scalarActiveFaceFlagValues | active face flag values |
Definition at line 52 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 that is used to update the cache |
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 267 of file qgsmeshcontours.cpp.
QgsGeometry QgsMeshContours::exportLines | ( | double | value, |
QgsFeedback * | feedback = nullptr |
||
) |
Exports multi line string containing the contour line for particular value using the data stored in the cache.
value | value of the contour line |
feedback | optional feedback object for progress and cancellation support |
Definition at line 281 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 64 of file qgsmeshcontours.cpp.
QgsGeometry QgsMeshContours::exportPolygons | ( | double | min_value, |
double | max_value, | ||
QgsFeedback * | feedback = nullptr |
||
) |
Exports multi polygons representing the areas with values in range using the data stored in the cache.
min_value | minimum of the value interval for contour polygon |
max_value | maximum of the value interval for contour polygon |
feedback | optional feedback object for progress and cancellation support |
Definition at line 80 of file qgsmeshcontours.cpp.