16#ifndef QGSVERTEXMARKER_H
17#define QGSVERTEXMARKER_H
42 sipType = sipType_QgsVertexMarker;
80 void setIconType(
int iconType );
89 void setColor(
const QColor &color );
97 QColor
color()
const {
return mColor; }
106 void setFillColor(
const QColor &color );
117 void setPenWidth(
int width );
119 void paint( QPainter *p )
override;
130 int mIconType = ICON_X;
141 QColor mColor = QColor( 255, 0, 0 );
147 QColor mFillColor = QColor( 0, 0, 0, 0 );
An abstract class for items that can be placed on the map canvas.
QRectF boundingRect() const override
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
virtual void updatePosition()
called on changed extent or resize event to update position of the item
Map canvas is a class for displaying all GIS data types on a canvas.
A class to represent a 2D point.
A class for marking vertices of features using e.g.
QColor color() const
Returns the stroke color for the marker.
@ ICON_TRIANGLE
Added in QGIS 3.12.
@ ICON_DOUBLE_TRIANGLE
Added in QGIS 3.0.
@ ICON_INVERTED_TRIANGLE
Added in QGIS 3.20.
@ ICON_RHOMBUS
Added in QGIS 3.12.
QgsPointXY center() const
Returns the center point of the marker, in map coordinates.
QColor fillColor() const
Returns the fill color for the marker.
QSize iconSize(bool dockableToolbar)
Returns the user-preferred size of a window's toolbar icons.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)