QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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 );
@ ICON_INVERTED_TRIANGLE
Added in QGIS 3.20.
@ ICON_TRIANGLE
Added in QGIS 3.12.
Map canvas is a class for displaying all GIS data types on a canvas.
@ ICON_DOUBLE_TRIANGLE
Added in QGIS 3.0.
QgsPointXY center() const
Returns the center point of the marker, in map coordinates.
QSize iconSize(bool dockableToolbar)
Returns the user-preferred size of a window's toolbar icons.
QColor color() const
Returns the stroke color for the marker.
virtual void updatePosition()
called on changed extent or resize event to update position of the item
A class for marking vertices of features using e.g. circles or 'x'.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
@ ICON_RHOMBUS
Added in QGIS 3.12.
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
An abstract class for items that can be placed on the map canvas.
A class to represent a 2D point.
QRectF boundingRect() const override
QColor fillColor() const
Returns the fill color for the marker.