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 );
double mTranslationOffsetY
A cross is used to highlight points (x)
QVector< QgsPoint > QgsPolyline
polyline is represented as a vector of points
An abstract class for items that can be placed on the map canvas.
A geometry is the spatial representation of a feature.
A cross is used to highlight points (+)
static QIcon icon(QString icon)
Map canvas is a class for displaying all GIS data types on a canvas.
QList< QList< QgsPoint > > mPoints
Nested lists used for multitypes.
A class for drawing transient features (e.g.
QGis::GeometryType mGeometryType
IconType mIconType
Icon to be shown.
A class to represent a point geometry.
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
A box is used to highlight points (□)
double mTranslationOffsetX
int mIconSize
The size of the icon for points.
Represents a vector layer which manages a vector based data sets.
IconType
Icons Added in 1.9.