QGIS/python/gui/qgsrubberband.sip
wonder 46a2d125a2 Merged refactoring branch back to trunk.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6415 c8812cc2-4d05-0410-92ff-de0c093fc19c
2007-01-09 02:39:15 +00:00

28 lines
554 B
Plaintext

class QgsRubberBand: QgsMapCanvasItem
{
%TypeHeaderCode
#include <qgsrubberband.h>
%End
public:
QgsRubberBand(QgsMapCanvas* mapCanvas, bool isPolygon = false);
~QgsRubberBand();
void setColor(const QColor & color);
void setWidth(int width);
void reset(bool isPolygon = false);
void addPoint(const QgsPoint & p);
void movePoint(const QgsPoint & p);
void movePoint(int index, const QgsPoint& p);
protected:
virtual void paint(QPainter* p);
//! recalculates needed rectangle
void updateRect();
};