File: qgsmeshtriangulation.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 (155 lines) | stat: -rw-r--r-- 5,117 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/analysis/mesh/qgsmeshtriangulation.h                             *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/






class QgsMeshTriangulation : QObject
{
%Docstring(signature="appended")
Class that handles mesh creation with Delaunay constrained triangulation

.. versionadded:: 3.16
%End

%TypeHeaderCode
#include "qgsmeshtriangulation.h"
%End
  public:
    QgsMeshTriangulation();
    ~QgsMeshTriangulation();

    bool addVertices( QgsFeatureIterator &vertexFeatureIterator, int valueAttribute, const QgsCoordinateTransform &transform, QgsFeedback *feedback = 0, long featureCount = 1 );
%Docstring
Adds vertices to the triangulation from a feature iterator, return
``True`` if successful.

:param vertexFeatureIterator: the feature iterator of vertices to insert
:param valueAttribute: the index of the attribute that represents the
                       value of vertices, if -1 uses Z coordinate of
                       vertices
:param transform: the coordinates transform used to transform
                  coordinates
:param feedback: feedback argument may be specified to allow
                 cancellation and progress reports
:param featureCount: the count of feature to allow progress report of
                     the feedback
%End

    bool addBreakLines( QgsFeatureIterator &lineFeatureIterator, int valueAttribute, const QgsCoordinateTransform &transformContext, QgsFeedback *feedback = 0, long featureCount = 1 );
%Docstring
Adds break lines from a vector layer, return ``True`` if successful.

:param lineFeatureIterator: the feature iterator of break lines to
                            insert
:param valueAttribute: the index of the attribute that represents the
                       value of vertices, if -1 uses Z coordinate of
                       vertices
:param transformContext: the coordinates transform context used to
                         transform coordinates
:param feedback: feedback argument may be specified to allow
                 cancellation and progress reports
:param featureCount: the count of feature to allow progress report of
                     the feedback

.. warning::

   if the feature iterator contains only point geometries, the vertices will be added only without treating them as breaklines
%End

    int addVertex( const QgsPoint &vertex );
%Docstring
Adds a new vertex in the triangulation and returns the index of the new
vertex

.. versionadded:: 3.22
%End

    QgsMesh triangulatedMesh( QgsFeedback *feedback = 0 ) const;
%Docstring
Returns the triangulated mesh
%End

    void setCrs( const QgsCoordinateReferenceSystem &crs );
%Docstring
Sets the coordinate reference system used for the triangulation
%End

  private:
    QgsMeshTriangulation( const QgsMeshTriangulation &rhs );
};


class QgsMeshZValueDatasetGroup : QgsMeshDatasetGroup
{
%Docstring(signature="appended")
Convenient class that can be used to obtain a datasetgroup on vertices
that represents the Z value of the mesh vertices

.. versionadded:: 3.16
%End

%TypeHeaderCode
#include "qgsmeshtriangulation.h"
%End
  public:
    QgsMeshZValueDatasetGroup( const QString &datasetGroupName, const QgsMesh &mesh );
%Docstring
Constructor

:param datasetGroupName: the name of the dataset group
:param mesh: the mesh used to create the Z value dataset
%End

    virtual void initialize();

    virtual QgsMeshDatasetMetadata datasetMetadata( int datasetIndex ) const;

    virtual int datasetCount() const;

    virtual QgsMeshDataset *dataset( int index ) const;

    virtual QgsMeshDatasetGroup::Type type() const;
    virtual QDomElement writeXml( QDomDocument &doc, const QgsReadWriteContext &context ) const;


  private:
    QgsMeshZValueDatasetGroup( const QgsMeshZValueDatasetGroup &rhs );
};


class QgsMeshEditingDelaunayTriangulation : QgsMeshAdvancedEditing
{
%Docstring(signature="appended")
Class that can be used with :py:func:`QgsMeshEditor.advancedEdit()` to
add triangle faces to a mesh created by a Delaunay triangulation on
provided existing vertex.

.. versionadded:: 3.22
%End

%TypeHeaderCode
#include "qgsmeshtriangulation.h"
%End
  public:
    QgsMeshEditingDelaunayTriangulation();

    virtual QString text() const;


};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/analysis/mesh/qgsmeshtriangulation.h                             *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/