33 connectLayers(
mCanvas->project()->mapLayers().values() );
68 if ( alternativeBand )
71 color.setAlphaF( color.alphaF() * alphaScale );
85 return mCanvas ? qobject_cast<QgsVectorLayer *>(
mCanvas->currentLayer() ) :
nullptr;
104 QVector<QgsPoint>::const_iterator list_it = vertices.constBegin();
105 for ( ; list_it != vertices.constEnd(); ++list_it )
128 QVector<QgsPointXY>::const_iterator list_it = vertices.constBegin();
129 for ( ; list_it != vertices.constEnd(); ++list_it )
142 if ( alternativeBand )
146 color.setAlphaF( alpha );
165void QgsMapToolEdit::connectLayers(
const QList<QgsMapLayer *> &layers )
177void QgsMapToolEdit::cleanCanvas()
179 if ( editableVectorLayers().isEmpty() )
185QList<QgsVectorLayer *> QgsMapToolEdit::editableVectorLayers()
187 QList<QgsVectorLayer *> editableLayers;
190 const auto layers =
mCanvas->project()->mapLayers().values();
195 editableLayers << vlayer;
198 return editableLayers;
A rubberband class for QgsAbstractGeometry (considering curved geometries).
void setStrokeColor(const QColor &c)
Sets stroke color for vertex markers.
void setLineStyle(Qt::PenStyle penStyle)
Sets pen style.
void setStrokeWidth(int width)
Sets stroke width.
void setFillColor(const QColor &c)
Sets fill color for vertex markers.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
void editingStopped()
Emitted when edited changes have been successfully written to the data provider.
void layersAdded(const QList< QgsMapLayer * > &layers)
Emitted when one or more layers were added to the registry.
A class for drawing transient features (e.g.
void setWidth(int width)
Sets the width of the line.
void setStrokeColor(const QColor &color)
Sets the stroke color for the rubberband.
void setLineStyle(Qt::PenStyle penStyle)
Sets the style of the line.
void setFillColor(const QColor &color)
Sets the fill color for the rubberband.
T value(const QString &dynamicKeyPart=QString()) const
Returns settings value.
T value(const QString &dynamicKeyPart=QString()) const
Returns settings value.
static const QgsSettingsEntryColor * settingsDigitizingFillColor
Settings entry digitizing fill color.
static const QgsSettingsEntryInteger * settingsDigitizingLineWidth
Settings entry digitizing line width.
static const QgsSettingsEntryDouble * settingsDigitizingLineColorAlphaScale
Settings entry digitizing line color alpha scale.
static const QgsSettingsEntryDouble * settingsDigitizingDefaultMValue
Settings entry digitizing default m value.
static const QgsSettingsEntryColor * settingsDigitizingLineColor
Settings entry digitizing line color.
static const QgsSettingsEntryDouble * settingsDigitizingDefaultZValue
Settings entry digitizing default z value.
Represents a vector layer which manages a vector based data sets.
bool isSpatial() const FINAL
Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeome...
bool isEditable() const FINAL
Returns true if the provider is in editing mode.
int addTopologicalPoints(const QgsGeometry &geom)
Adds topological points for every vertex of the geometry.
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
#define Q_NOWARN_DEPRECATED_POP
#define Q_NOWARN_DEPRECATED_PUSH