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 );
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 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 circle is used to highlight points (○)
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.