From 98571194f0da6c04bf5d48beb841c68f5ec47887 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Wed, 14 Nov 2012 12:58:33 +0100 Subject: [PATCH] SIP bindings for point rubberband. --- python/gui/qgsrubberband.sip | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/gui/qgsrubberband.sip b/python/gui/qgsrubberband.sip index a7bc7481a4c..21ca0d9b2ad 100644 --- a/python/gui/qgsrubberband.sip +++ b/python/gui/qgsrubberband.sip @@ -5,13 +5,15 @@ class QgsRubberBand: QgsMapCanvasItem %End public: - QgsRubberBand( QgsMapCanvas* mapCanvas /TransferThis/, bool isPolygon = false ); + QgsRubberBand( QgsMapCanvas* mapCanvas /TransferThis/, QGis::GeometryType geometryType = QGis::Line ); + QgsRubberBand( QgsMapCanvas* mapCanvas /TransferThis/, bool isPolygon ); ~QgsRubberBand(); void setColor( const QColor & color ); void setWidth( int width ); - void reset( bool isPolygon = false ); + void reset( QGis::GeometryType geometryType = QGis::Line ); + void reset( bool isPolygon ); //! Add point to rubberband and update canvas //! If adding more points consider using update=false for better performance