Skip to content
Permalink
Browse files
SIP bindings for point rubberband.
  • Loading branch information
m-kuhn committed Nov 26, 2012
1 parent 91d8aaf commit 98571194f0da6c04bf5d48beb841c68f5ec47887
Showing with 4 additions and 2 deletions.
  1. +4 −2 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

0 comments on commit 9857119

Please sign in to comment.