QGIS/python/analysis/auto_generated/mesh/qgsmeshcontours.sip.in
Nyall Dawson 3f6b490218 Sipify
2025-04-02 11:11:10 +10:00

89 lines
2.9 KiB
Plaintext

/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/mesh/qgsmeshcontours.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsMeshContours
{
%Docstring(signature="appended")
Exporter of contours lines or polygons from a mesh layer.
.. versionadded:: 3.12
%End
%TypeHeaderCode
#include "qgsmeshcontours.h"
%End
public:
QgsMeshContours( QgsMeshLayer *layer );
%Docstring
Constructs the mesh contours exporter. Caches the native and triangular
mesh from data provider
:param layer: mesh layer to be associated with this exporter
%End
~QgsMeshContours();
QgsGeometry exportLines( const QgsMeshDatasetIndex &index, double value, QgsMeshRendererScalarSettings::DataResamplingMethod method, QgsFeedback *feedback = 0 );
%Docstring
Exports multi line string containing the contour line for particular
dataset and value.
:param index: dataset index that is used to update the cache
:param value: value of the contour line
:param method: for datasets defined on faces, the method will be used to
convert data to vertices
:param feedback: optional feedback object for progress and cancellation
support
:return: MultiLineString geometry containing contour lines
.. note::
not thread safe
%End
QgsGeometry exportPolygons( const QgsMeshDatasetIndex &index, double min_value, double max_value, QgsMeshRendererScalarSettings::DataResamplingMethod method, QgsFeedback *feedback = 0 );
%Docstring
Exports multi polygons representing the areas with values in range for
particular dataset
:param index: dataset index
:param min_value: minimum of the value interval for contour polygon
:param max_value: maximum of the value interval for contour polygon
:param method: for datasets defined on faces, the method will be used to
convert data to vertices
:param feedback: optional feedback object for progress and cancellation
support
:return: MultiPolygon geometry containing contour polygons
.. note::
not thread safe
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/analysis/mesh/qgsmeshcontours.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/