15 #ifndef QGSRUBBERBAND_H
16 #define QGSRUBBERBAND_H
82 void setColor(
const QColor & color );
88 void setWidth(
int width );
95 void setIcon( IconType
icon );
101 void setIconSize(
int iconSize );
107 void setLineStyle( Qt::PenStyle penStyle );
113 void setBrushStyle( Qt::BrushStyle brushStyle );
129 void reset(
bool isPolygon );
139 void addPoint(
const QgsPoint & p,
bool doUpdate =
true,
int geometryIndex = 0 );
147 void removePoint(
int index = 0,
bool doUpdate =
true,
int geometryIndex = 0 );
152 void removeLastPoint(
int geometryIndex = 0 ,
bool doUpdate =
true );
158 void movePoint(
const QgsPoint & p,
int geometryIndex = 0 );
164 void movePoint(
int index,
const QgsPoint& p,
int geometryIndex = 0 );
171 int partSize(
int geometryIndex )
const;
188 void setToCanvasRectangle(
const QRect& rect );
209 void setTranslationOffset(
double dx,
double dy );
222 int numberOfVertices()
const;
229 const QgsPoint *getPoint(
int i,
int j = 0 )
const;
239 virtual void paint( QPainter* p );
266 static QgsPolyline getPolyline(
const QList<QgsPoint> & points );