Skip to content

Commit

Permalink
SIP bindings for point rubberband.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Nov 26, 2012
1 parent 91d8aaf commit 9857119
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/gui/qgsrubberband.sip
Expand Up @@ -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
Expand Down

0 comments on commit 9857119

Please sign in to comment.