QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSVERTEXMARKER_H
17 #define QGSVERTEXMARKER_H
42 sipType = sipType_QgsVertexMarker;
66 void setIconType(
int iconType );
75 void setColor(
const QColor &color );
83 QColor
color()
const {
return mColor; }
92 void setFillColor(
const QColor &color );
103 void setPenWidth(
int width );
105 void paint( QPainter *p )
override;
114 int mIconType = ICON_X;
123 QColor mColor = QColor( 255, 0, 0 );
129 QColor mFillColor = QColor( 0, 0, 0, 0 );
@ 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.
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.
#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.