16#ifndef QGSMAPTOOLCAPTURE_H
17#define QGSMAPTOOLCAPTURE_H
35class QgsMapToolCaptureRubberBand;
66 NoCapabilities = 1 << 0,
67 SupportsCurves = 1 << 1,
68 ValidateGeometries = 1 << 2,
71 Q_DECLARE_FLAGS( Capabilities, Capability )
81 virtual QgsMapToolCapture::Capabilities capabilities()
const;
135 QList<QgsPointLocator::Match> snappingMatches()
const;
149 void deleteTempRubberBand();
152 void clean()
override;
195 Q_DECL_DEPRECATED
void setCircularDigitizingEnabled(
bool enable )
SIP_DEPRECATED;
202 Q_DECL_DEPRECATED
void setStreamDigitizingEnabled(
bool enable )
SIP_DEPRECATED;
208 void updateExtraSnapLayer();
274 void undo(
bool isAutoRepeat = false );
279 void startCapturing();
286 bool isCapturing() const;
337 void stopCapturing();
353 virtual void pointCaptured(
const QgsPoint &point ) {Q_UNUSED( point )}
SIP_FORCE
370 bool tracingEnabled();
376 bool tracingAddVertex(
const QgsPointXY &point );
379 QgsMapToolCaptureRubberBand *createCurveRubberBand()
const;
382 void resetRubberBand();
385 CaptureMode mCaptureMode;
388 bool mCapturing =
false;
403 QList<QgsPointLocator::Match> mSnappingMatches;
407 void validateGeometry();
409 QList< QgsGeometry::Error > mGeomErrors;
410 QList< QgsVertexMarker * > mGeomErrorMarkers;
417 bool mCaptureModeFromLayer =
false;
419 std::unique_ptr<QgsSnapIndicator> mSnapIndicator;
436 bool mAllowAddingStreamingPoints =
false;
437 int mStreamingToleranceInPixels = 1;
439 bool mStartNewCurve =
false;
441 bool mIgnoreSubsequentAutoRepeatUndo =
false;
443 friend class TestQgsMapToolCapture;
CaptureTechnique
Capture technique.
@ StraightSegments
Default capture mode - capture occurs with straight line segments.
Compound curve geometry type.
Curve polygon geometry type.
Abstract base class for curved geometry type.
A geometry is the spatial representation of a feature.
Map canvas is a class for displaying all GIS data types on a canvas.
Base class for all map layer types.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
The class defines interface for querying point location:
A class to represent a 2D point.
Point geometry type, with support for z-dimension and m-values.
A class for drawing transient features (e.g.
Class that shows snapping marker on map canvas for the current snapping match.
Represents a vector layer which manages a vector based data sets.
A class for marking vertices of features using e.g.
Type
The WKB type describes the number of dimensions a geometry has.
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
QVector< QgsPoint > QgsPointSequence
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features
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.