File tree 2 files changed +14
-6
lines changed
python/gui/auto_generated
2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,17 @@ for tracking the mouse while drawing polylines or polygons.
46
46
%Docstring
47
47
Creates a new RubberBand.
48
48
49
- :param mapCanvas: The map canvas to draw onto. It's CRS will be used map points onto screen coordinates.
50
- :param geometryType: Defines how the data should be drawn onto the screen. (Use Qgis.Line, Qgis.Polygon or Qgis.Point)
49
+ :param mapCanvas: The map canvas to draw onto.
50
+ Its CRS will be used map points onto screen coordinates.
51
+ The ownership is transferred to this canvas.
52
+ :param geometryType: Defines how the data should be drawn onto the screen.
53
+ QgsWkbTypes.LineGeometry, QgsWkbTypes.PolygonGeometry or QgsWkbTypes.PointGeometry
51
54
%End
52
55
53
56
void setColor( const QColor &color );
54
57
%Docstring
55
- Sets the color for the rubberband
58
+ Sets the color for the rubberband.
59
+ Shorthand method to set fill and stroke color with a single call.
56
60
57
61
:param color: The color used to render this rubberband
58
62
%End
Original file line number Diff line number Diff line change @@ -87,13 +87,17 @@ class GUI_EXPORT QgsRubberBand: public QgsMapCanvasItem
87
87
88
88
/* *
89
89
* Creates a new RubberBand.
90
- * \param mapCanvas The map canvas to draw onto. It's CRS will be used map points onto screen coordinates.
91
- * \param geometryType Defines how the data should be drawn onto the screen. (Use Qgis::Line, Qgis::Polygon or Qgis::Point)
90
+ * \param mapCanvas The map canvas to draw onto.
91
+ * Its CRS will be used map points onto screen coordinates.
92
+ * The ownership is transferred to this canvas.
93
+ * \param geometryType Defines how the data should be drawn onto the screen.
94
+ * QgsWkbTypes::LineGeometry, QgsWkbTypes::PolygonGeometry or QgsWkbTypes::PointGeometry
92
95
*/
93
96
QgsRubberBand ( QgsMapCanvas *mapCanvas SIP_TRANSFERTHIS, QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry );
94
97
95
98
/* *
96
- * Sets the color for the rubberband
99
+ * Sets the color for the rubberband.
100
+ * Shorthand method to set fill and stroke color with a single call.
97
101
* \param color The color used to render this rubberband
98
102
*/
99
103
void setColor ( const QColor &color );
You can’t perform that action at this time.
0 commit comments