Skip to content

Commit d075b12

Browse files
committedAug 1, 2016
Add missing docs
1 parent 4b78b1c commit d075b12

File tree

6 files changed

+47
-0
lines changed

6 files changed

+47
-0
lines changed
 

‎python/core/geometry/qgsgeometry.sip

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,10 @@ class QgsGeometry
794794
//! Allows direct construction of QVariants from geometry.
795795
operator QVariant() const;
796796

797+
/** Returns true if the geometry is non empty (ie, isEmpty() returns false),
798+
* or false if it is an empty, uninitialised geometry (ie, ieEmpty() returns true).
799+
* @note added in QGIS 3.0
800+
*/
797801
operator bool() const;
798802

799803
}; // class QgsGeometry

‎python/core/qgsvectorlayereditbuffer.sip

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,13 @@ class QgsVectorLayerEditBuffer : QObject
145145

146146
void featureAdded( QgsFeatureId fid );
147147
void featureDeleted( QgsFeatureId fid );
148+
149+
/** Emitted when a feature's geometry is changed.
150+
* @param fid feature ID
151+
* @param geom new feature geometry
152+
*/
148153
void geometryChanged( QgsFeatureId fid, const QgsGeometry &geom );
154+
149155
void attributeValueChanged( QgsFeatureId fid, int idx, const QVariant & );
150156
void attributeAdded( int idx );
151157
void attributeDeleted( int idx );

‎python/gui/qgshighlight.sip

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,21 @@ class QgsHighlight : QgsMapCanvasItem
44
#include <qgshighlight.h>
55
%End
66
public:
7+
8+
/** Constructor for QgsHighlight
9+
* @param mapCanvas associated map canvas
10+
* @param geom initial geometry of highlight
11+
* @param layer associated map layer
12+
*/
13+
//QgsHighlight( QgsMapCanvas *mapCanvas, const QgsGeometry& geom, QgsMapLayer *layer );
14+
15+
/** Constructor for QgsHighlight
16+
* @param mapCanvas associated map canvas
17+
* @param geom initial geometry of highlight
18+
* @param layer associated vector layer
19+
*/
720
QgsHighlight( QgsMapCanvas *mapCanvas, const QgsGeometry& geom, QgsVectorLayer *layer );
21+
822
~QgsHighlight();
923

1024
/** Set line/outline to color, polygon fill to color with alpha = 63.

‎src/core/geometry/qgsgeometry.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,10 @@ class CORE_EXPORT QgsGeometry
845845
return QVariant::fromValue( *this );
846846
}
847847

848+
/** Returns true if the geometry is non empty (ie, isEmpty() returns false),
849+
* or false if it is an empty, uninitialised geometry (ie, ieEmpty() returns true).
850+
* @note added in QGIS 3.0
851+
*/
848852
operator bool() const;
849853

850854
private:

‎src/core/qgsvectorlayereditbuffer.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@ class CORE_EXPORT QgsVectorLayerEditBuffer : public QObject
172172

173173
void featureAdded( QgsFeatureId fid );
174174
void featureDeleted( QgsFeatureId fid );
175+
176+
/** Emitted when a feature's geometry is changed.
177+
* @param fid feature ID
178+
* @param geom new feature geometry
179+
*/
175180
void geometryChanged( QgsFeatureId fid, const QgsGeometry &geom );
181+
176182
void attributeValueChanged( QgsFeatureId fid, int idx, const QVariant & );
177183
void attributeAdded( int idx );
178184
void attributeDeleted( int idx );

‎src/gui/qgshighlight.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,21 @@ class QgsSymbolV2;
3535
class GUI_EXPORT QgsHighlight: public QgsMapCanvasItem
3636
{
3737
public:
38+
39+
/** Constructor for QgsHighlight
40+
* @param mapCanvas associated map canvas
41+
* @param geom initial geometry of highlight
42+
* @param layer associated map layer
43+
*/
3844
QgsHighlight( QgsMapCanvas *mapCanvas, const QgsGeometry& geom, QgsMapLayer *layer );
45+
46+
/** Constructor for QgsHighlight
47+
* @param mapCanvas associated map canvas
48+
* @param geom initial geometry of highlight
49+
* @param layer associated vector layer
50+
*/
3951
QgsHighlight( QgsMapCanvas *mapCanvas, const QgsGeometry& geom, QgsVectorLayer *layer );
52+
4053
/** Constructor for highlighting true feature shape using feature attributes
4154
* and renderer.
4255
* @param mapCanvas map canvas

0 commit comments

Comments
 (0)
Please sign in to comment.