16 #ifndef QGSVERTEXMARKER_H 17 #define QGSVERTEXMARKER_H 41 if ( dynamic_cast<QgsVertexMarker *>( sipCpp ) )
42 sipType = sipType_QgsVertexMarker;
79 void setIconType(
int iconType );
88 void setColor(
const QColor &color );
96 QColor
color()
const {
return mColor; }
105 void setFillColor(
const QColor &color );
116 void setPenWidth(
int width );
118 void paint( QPainter *p )
override;
127 int mIconType = ICON_X;
136 QColor mColor = QColor( 255, 0, 0 );
142 QColor mFillColor = QColor( 0, 0, 0, 0 );
A class to represent a 2D point.
An abstract class for items that can be placed on the map canvas.
Map canvas is a class for displaying all GIS data types on a canvas.
QRectF boundingRect() const override
QColor color() const
Returns the stroke color for the marker.
QColor fillColor() const
Returns the fill color for the marker.
A class for marking vertices of features using e.g.
QSize iconSize(bool dockableToolbar)
Returns the user-preferred size of a window's toolbar icons.
virtual void paint(QPainter *painter)=0
function to be implemented by derived classes
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
QgsPointXY center() const
Returns the center point of the marker, in map coordinates.
virtual void updatePosition()
called on changed extent or resize event to update position of the item