@@ -32,39 +32,45 @@ class CORE_EXPORT QgsVectorLayerEditUtils
32
32
public:
33
33
QgsVectorLayerEditUtils ( QgsVectorLayer *layer );
34
34
35
- /* * Insert a new vertex before the given vertex number,
36
- * in the given ring, item (first number is index 0), and feature
37
- * Not meaningful for Point geometries
35
+ /* *
36
+ * Insert a new vertex before the given vertex number,
37
+ * in the given ring, item (first number is index 0), and feature
38
+ * Not meaningful for Point geometries
38
39
*/
39
40
bool insertVertex ( double x, double y, QgsFeatureId atFeatureId, int beforeVertex );
40
41
41
- /* * Insert a new vertex before the given vertex number,
42
- * in the given ring, item (first number is index 0), and feature
43
- * Not meaningful for Point geometries
42
+ /* *
43
+ * Inserts a new vertex before the given vertex number,
44
+ * in the given ring, item (first number is index 0), and feature
45
+ * Not meaningful for Point geometries
44
46
*/
45
47
bool insertVertex ( const QgsPoint &point, QgsFeatureId atFeatureId, int beforeVertex );
46
48
47
- /* * Moves the vertex at the given position number,
48
- * ring and item (first number is index 0), and feature
49
- * to the given coordinates
49
+ /* *
50
+ * Moves the vertex at the given position number,
51
+ * ring and item (first number is index 0), and feature
52
+ * to the given coordinates
50
53
*/
51
54
bool moveVertex ( double x, double y, QgsFeatureId atFeatureId, int atVertex );
52
55
53
- /* * Moves the vertex at the given position number,
54
- * ring and item (first number is index 0), and feature
55
- * to the given coordinates
56
- * \note available in Python bindings as moveVertexV2
56
+ /* *
57
+ * Moves the vertex at the given position number,
58
+ * ring and item (first number is index 0), and feature
59
+ * to the given coordinates
60
+ * \note available in Python bindings as moveVertexV2
57
61
*/
58
62
bool moveVertex ( const QgsPoint &p, QgsFeatureId atFeatureId, int atVertex ) SIP_PYNAME( moveVertexV2 );
59
63
60
- /* * Deletes a vertex from a feature.
64
+ /* *
65
+ * Deletes a vertex from a feature.
61
66
* \param featureId ID of feature to remove vertex from
62
67
* \param vertex index of vertex to delete
63
68
* \since QGIS 2.14
64
69
*/
65
70
QgsVectorLayer::EditResult deleteVertex ( QgsFeatureId featureId, int vertex );
66
71
67
- /* * Adds a ring to polygon/multipolygon features
72
+ /* *
73
+ * Adds a ring to polygon/multipolygon features
68
74
* \param ring ring to add
69
75
* \param targetFeatureIds if specified, only these features will be the candidates for adding a ring. Otherwise
70
76
* all intersecting features are tested and the ring is added to the first valid feature.
@@ -109,7 +115,7 @@ class CORE_EXPORT QgsVectorLayerEditUtils
109
115
QgsGeometry::OperationResult addPart ( const QgsPointSequence &ring, QgsFeatureId featureId );
110
116
111
117
/* *
112
- * Add a new part polygon to a multipart feature
118
+ * Adds a new part polygon to a multipart feature
113
119
*
114
120
* \return
115
121
* - QgsGeometry::Success
@@ -132,7 +138,7 @@ class CORE_EXPORT QgsVectorLayerEditUtils
132
138
int translateFeature ( QgsFeatureId featureId, double dx, double dy );
133
139
134
140
/* *
135
- * Split parts cut by the given line
141
+ * Splits parts cut by the given line
136
142
* \param splitLine line that splits the layer feature parts
137
143
* \param topologicalEditing true if topological editing is enabled
138
144
* \return
@@ -156,14 +162,16 @@ class CORE_EXPORT QgsVectorLayerEditUtils
156
162
*/
157
163
QgsGeometry::OperationResult splitFeatures ( const QList<QgsPointXY> &splitLine, bool topologicalEditing = false );
158
164
159
- /* * Adds topological points for every vertex of the geometry.
165
+ /* *
166
+ * Adds topological points for every vertex of the geometry.
160
167
* \param geom the geometry where each vertex is added to segments of other features
161
168
* \note geom is not going to be modified by the function
162
169
* \returns 0 in case of success
163
170
*/
164
171
int addTopologicalPoints ( const QgsGeometry &geom );
165
172
166
- /* * Adds a vertex to segments which intersect point p but don't
173
+ /* *
174
+ * Adds a vertex to segments which intersect point p but don't
167
175
* already have a vertex there. If a feature already has a vertex at position p,
168
176
* no additional vertex is inserted. This method is useful for topological
169
177
* editing.
0 commit comments