15 #ifndef QGSRUBBERBAND_H 16 #define QGSRUBBERBAND_H 84 void setColor(
const QColor & color );
91 void setFillColor(
const QColor & color );
98 void setBorderColor(
const QColor & color );
104 void setWidth(
int width );
115 void setIconSize(
int iconSize );
120 void setLineStyle( Qt::PenStyle penStyle );
125 void setBrushStyle( Qt::BrushStyle brushStyle );
140 Q_DECL_DEPRECATED
void reset(
bool isPolygon );
150 void addPoint(
const QgsPoint & p,
bool doUpdate =
true,
int geometryIndex = 0 );
158 void closePoints(
bool doUpdate =
true,
int geometryIndex = 0 );
166 void removePoint(
int index = 0,
bool doUpdate =
true,
int geometryIndex = 0 );
171 void removeLastPoint(
int geometryIndex = 0,
bool doUpdate =
true );
177 void movePoint(
const QgsPoint & p,
int geometryIndex = 0 );
183 void movePoint(
int index,
const QgsPoint& p,
int geometryIndex = 0 );
190 int partSize(
int geometryIndex )
const;
206 void setToCanvasRectangle(
QRect rect );
226 void setTranslationOffset(
double dx,
double dy );
238 int numberOfVertices()
const;
245 const QgsPoint *getPoint(
int i,
int j = 0 )
const;
276 double mTranslationOffsetX;
277 double mTranslationOffsetY;
A cross is used to highlight points (x)
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 (+)
Map canvas is a class for displaying all GIS data types on a canvas.
A circle is used to highlight points (○)
A class for drawing transient features (e.g.
A class to represent a point.
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
A box is used to highlight points (□)
Represents a vector layer which manages a vector based data sets.
virtual void updatePosition()
called on changed extent or resize event to update position of the item