15 #ifndef QGSRUBBERBAND_H
16 #define QGSRUBBERBAND_H
86 void setColor(
const QColor & color );
92 void setWidth(
int width );
99 void setIcon( IconType
icon );
105 void setIconSize(
int iconSize );
111 void setLineStyle( Qt::PenStyle penStyle );
117 void setBrushStyle( Qt::BrushStyle brushStyle );
133 void reset(
bool isPolygon );
143 void addPoint(
const QgsPoint & p,
bool doUpdate =
true,
int geometryIndex = 0 );
151 void removePoint(
int index = 0,
bool doUpdate =
true,
int geometryIndex = 0 );
156 void removeLastPoint(
int geometryIndex = 0 ,
bool doUpdate =
true );
162 void movePoint(
const QgsPoint & p,
int geometryIndex = 0 );
168 void movePoint(
int index,
const QgsPoint& p,
int geometryIndex = 0 );
175 int partSize(
int geometryIndex )
const;
192 void setToCanvasRectangle(
const QRect& rect );
213 void setTranslationOffset(
double dx,
double dy );
226 int numberOfVertices()
const;
233 const QgsPoint *getPoint(
int i,
int j = 0 )
const;
243 virtual void paint( QPainter* p );
270 static QgsPolyline getPolyline(
const QList<QgsPoint> & points );