QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
33 connectLayers(
mCanvas->project()->mapLayers().values() );
76 if ( alternativeBand )
79 color.setAlphaF( color.alphaF() * alphaScale );
93 return mCanvas ? qobject_cast<QgsVectorLayer *>(
mCanvas->currentLayer() ) :
nullptr;
112 QVector<QgsPoint>::const_iterator list_it = vertices.constBegin();
113 for ( ; list_it != vertices.constEnd(); ++list_it )
136 QVector<QgsPointXY>::const_iterator list_it = vertices.constBegin();
137 for ( ; list_it != vertices.constEnd(); ++list_it )
153 if ( alternativeBand )
158 color.setAlphaF( myAlpha );
176 void QgsMapToolEdit::connectLayers(
const QList<QgsMapLayer *> &layers )
188 void QgsMapToolEdit::cleanCanvas()
190 if ( editableVectorLayers().isEmpty() )
196 QList<QgsVectorLayer *> QgsMapToolEdit::editableVectorLayers()
198 QList<QgsVectorLayer *> editableLayers;
201 const auto layers =
mCanvas->project()->mapLayers().values();
206 editableLayers << vlayer;
209 return editableLayers;
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. digitizing lines) on the map.
static const QgsSettingsEntryInteger settingsDigitizingFillColorRed
Settings entry digitizing fill color red.
static const QgsSettingsEntryInteger settingsDigitizingLineWidth
Settings entry digitizing line width.
Map canvas is a class for displaying all GIS data types on a canvas.
static const QgsSettingsEntryInteger settingsDigitizingFillColorBlue
Settings entry digitizing fill color blue.
void setStrokeColor(const QColor &color)
Sets the stroke color for the rubberband.
bool isSpatial() const FINAL
Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeome...
void setFillColor(const QColor &color)
Sets the fill color for the rubberband.
This class is a composition of two QSettings instances:
static const QgsSettingsEntryInteger settingsDigitizingLineColorRed
Settings entry digitizing line color red.
static const QgsSettingsEntryDouble settingsDigitizingDefaultMValue
Settings entry digitizing default m value.
bool isEditable() const FINAL
Returns true if the provider is in editing mode.
#define Q_NOWARN_DEPRECATED_POP
void setFillColor(const QColor &c)
Sets fill color for vertex markers.
int addTopologicalPoints(const QgsGeometry &geom)
Adds topological points for every vertex of the geometry.
void setLineStyle(Qt::PenStyle penStyle)
Sets pen style.
static const QgsSettingsEntryInteger settingsDigitizingFillColorGreen
Settings entry digitizing fill color green.
void setLineStyle(Qt::PenStyle penStyle)
Sets the style of the line.
static const QgsSettingsEntryDouble settingsDigitizingLineColorAlphaScale
Settings entry digitizing line color alpha scale.
A rubberband class for QgsAbstractGeometry (considering curved geometries).
void setWidth(int width)
Sets the width of the line.
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
Represents a vector layer which manages a vector based data sets.
static const QgsSettingsEntryInteger settingsDigitizingLineColorBlue
Settings entry digitizing line color blue.
static const QgsSettingsEntryInteger settingsDigitizingLineColorAlpha
Settings entry digitizing line color alpha.
Base class for all map layer types. This is the base class for all map layer types (vector,...
static const QgsSettingsEntryDouble settingsDigitizingDefaultZValue
Settings entry digitizing default z value.
static const QgsSettingsEntryInteger settingsDigitizingLineColorGreen
Settings entry digitizing line color green.
void setStrokeWidth(int width)
Sets stroke width.
void setStrokeColor(const QColor &c)
Sets stroke color for vertex markers.
#define Q_NOWARN_DEPRECATED_PUSH
static const QgsSettingsEntryInteger settingsDigitizingFillColorAlpha
Settings entry digitizing fill color alpha.
T value(const QString &dynamicKeyPart=QString()) const
Returns settings value.