18#ifndef QGSGEOMETRYRUBBERBAND_H
19#define QGSGEOMETRYRUBBERBAND_H
54 sipType = sipType_QgsGeometryRubberBand;
108 void setFillColor(
const QColor &
c );
110 void setStrokeColor(
const QColor &
c );
112 void setStrokeWidth(
int width );
114 void setLineStyle( Qt::PenStyle penStyle );
116 void setBrushStyle( Qt::BrushStyle brushStyle );
120 void setVertexDrawingEnabled(
bool isVerticesDrawn );
124 void paint( QPainter *painter )
override;
133 std::unique_ptr<QgsAbstractGeometry> mGeometry =
nullptr;
139 bool mDrawVertices =
true;
141 void drawVertex( QPainter *p,
double x,
double y );
GeometryType
The geometry types are used to group Qgis::WkbType in a coarse way.
Abstract base class for all geometries.
A rubberband class for QgsAbstractGeometry (considering curved geometries).
const QgsAbstractGeometry * geometry()
Returns a pointer to the geometry.
@ ICON_X
A cross is used to highlight points (x)
@ ICON_NONE
No icon is used.
@ ICON_CIRCLE
A circle is used to highlight points (○)
@ ICON_BOX
A box is used to highlight points (□)
@ ICON_CROSS
A cross is used to highlight points (+)
void setIconType(IconType iconType)
Sets vertex marker icon type.
An abstract class for items that can be placed on the map canvas.
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.
Point geometry type, with support for z-dimension and m-values.
A rectangle specified with double values.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
Utility class for identifying a unique vertex within a geometry.