97 return QRectF( -s, -s, 2.0*s, 2.0*s );
void paint(QPainter *p) override
function to be implemented by derived classes
virtual void updatePosition() override
called on changed extent or resize event to update position of the item
QColor mColor
color of the marker
An abstract class for items that can be placed on the map canvas.
void setPenWidth(int width)
QRectF boundingRect() const override
default implementation for canvas items
void drawLine(const QLineF &line)
Map canvas is a class for displaying all GIS data types on a canvas.
QgsVertexMarker(QgsMapCanvas *mapCanvas)
QPointF toCanvasCoordinates(const QgsPoint &point) const
transformation from map coordinates to screen coordinates
void setPen(const QColor &color)
void drawEllipse(const QRectF &rectangle)
void setPos(const QPointF &pos)
void setCenter(const QgsPoint &point)
A class to represent a point.
void setIconSize(int iconSize)
int mIconType
icon to be shown
void setColor(const QColor &color)
void setIconType(int iconType)
QgsPoint mCenter
coordinates of the point in the center