16#ifndef QGSVERTEXMARKER_H
17#define QGSVERTEXMARKER_H
41 sipType = sipType_QgsVertexMarker;
78 void setIconType(
int iconType );
80 void setIconSize(
int iconSize );
87 void setColor(
const QColor &color );
94 QColor
color()
const {
return mColor; }
102 void setFillColor(
const QColor &color );
112 void setPenWidth(
int width );
114 void paint( QPainter *p )
override;
124 int mIconType = ICON_X;
135 QColor mColor = QColor( 255, 0, 0 );
141 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.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)