mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6909 c8812cc2-4d05-0410-92ff-de0c093fc19c
28 lines
569 B
Plaintext
28 lines
569 B
Plaintext
|
|
class QgsRubberBand: QgsMapCanvasItem
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsrubberband.h>
|
|
%End
|
|
|
|
public:
|
|
QgsRubberBand(QgsMapCanvas* mapCanvas /TransferThis/, 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();
|
|
|
|
};
|
|
|