File: qgsmeshcontours.sip.in

package info (click to toggle)
qgis 3.40.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,181,336 kB
  • sloc: cpp: 1,593,302; python: 370,494; xml: 23,474; perl: 3,664; sh: 3,482; ansic: 2,257; sql: 2,133; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 157
file content (88 lines) | stat: -rw-r--r-- 2,940 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
/************************************************************************
 * 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   *
 ************************************************************************/