QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSMAPTOOLCAPTURE_H
17 #define QGSMAPTOOLCAPTURE_H
36 class QgsMapToolCaptureRubberBand;
67 NoCapabilities = 1 << 0,
68 SupportsCurves = 1 << 1,
69 ValidateGeometries = 1 << 2,
72 Q_DECLARE_FLAGS( Capabilities, Capability )
82 virtual QgsMapToolCapture::Capabilities capabilities()
const;
136 QList<QgsPointLocator::Match> snappingMatches()
const;
150 void deleteTempRubberBand();
153 void clean()
override;
196 Q_DECL_DEPRECATED
void setCircularDigitizingEnabled(
bool enable )
SIP_DEPRECATED;
203 Q_DECL_DEPRECATED
void setStreamDigitizingEnabled(
bool enable )
SIP_DEPRECATED;
209 void updateExtraSnapLayer();
270 void undo(
bool isAutoRepeat = false );
275 void startCapturing();
282 bool isCapturing() const;
333 void stopCapturing();
349 virtual void pointCaptured(
const QgsPoint &point ) {Q_UNUSED( point )}
SIP_FORCE
366 bool tracingEnabled();
372 bool tracingAddVertex(
const QgsPointXY &point );
375 QgsMapToolCaptureRubberBand *createCurveRubberBand()
const;
378 void resetRubberBand();
381 CaptureMode mCaptureMode;
384 bool mCapturing =
false;
399 QList<QgsPointLocator::Match> mSnappingMatches;
403 void validateGeometry();
405 QList< QgsGeometry::Error > mGeomErrors;
406 QList< QgsVertexMarker * > mGeomErrorMarkers;
413 bool mCaptureModeFromLayer =
false;
415 std::unique_ptr<QgsSnapIndicator> mSnapIndicator;
432 bool mAllowAddingStreamingPoints =
false;
433 int mStreamingToleranceInPixels = 1;
435 bool mStartNewCurve =
false;
437 bool mIgnoreSubsequentAutoRepeatUndo =
false;
439 friend class TestQgsMapToolCapture;
Abstract base class for curved geometry type.
Point geometry type, with support for z-dimension and m-values.
A class for drawing transient features (e.g. digitizing lines) on the map.
Curve polygon geometry type.
Map canvas is a class for displaying all GIS data types on a canvas.
Type
The WKB type describes the number of dimensions a geometry has.
Class that shows snapping marker on map canvas for the current snapping match.
A class for marking vertices of features using e.g. circles or 'x'.
Q_DECLARE_OPERATORS_FOR_FLAGS(QgsField::ConfigurationFlags) CORE_EXPORT QDataStream &operator<<(QDataStream &out
Writes the field to stream out. QGIS version compatibility is not guaranteed.
A class to represent a 2D point.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas....
QVector< QgsPoint > QgsPointSequence
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
A geometry is the spatial representation of a feature.
@ StraightSegments
Default capture mode - capture occurs with straight line segments.
Represents a vector layer which manages a vector based data sets.
Base class for all map layer types. This is the base class for all map layer types (vector,...
The class defines interface for querying point location:
CaptureTechnique
Capture technique.
Compound curve geometry type.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features