QGIS/python/gui/qgsrubberband.sip

28 lines
554 B
Plaintext
Raw Normal View History

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();
};