QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSMAPTOOLCAPTURE_H
17 #define QGSMAPTOOLCAPTURE_H
37 class QgsMapToolCaptureRubberBand;
62 bool curveIsComplete()
const;
75 void addPoint(
const QgsPoint &point,
bool doUpdate =
true );
78 void movePoint(
const QgsPoint &point );
81 void movePoint(
int index,
const QgsPoint &point );
96 QgsPoint pointFromEnd(
int posFromEnd )
const;
99 void removeLastPoint();
144 Q_DECLARE_FLAGS( Capabilities, Capability )
154 virtual QgsMapToolCapture::Capabilities capabilities()
const;
188 QList<QgsPointLocator::Match> snappingMatches()
const;
201 void deleteTempRubberBand();
204 void clean()
override;
216 void setCircularDigitizingEnabled(
bool enable );
222 void updateExtraSnapLayer();
310 void startCapturing();
317 bool isCapturing() const;
368 void stopCapturing();
372 bool tracingEnabled();
378 bool tracingAddVertex( const
QgsPointXY &point );
381 QgsMapToolCaptureRubberBand *createCurveRubberBand() const;
388 void resetRubberBand();
392 CaptureMode mCaptureMode;
395 bool mCapturing = false;
404 std::
unique_ptr<QgsMapToolCaptureRubberBand> mTempRubberBand;
413 void validateGeometry();
423 bool mCaptureModeFromLayer = false;
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.
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.
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
A class for marking vertices of features using e.g.
Keeps a pointer to a QObject and deletes it whenever this object is deleted.
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.
virtual void setGeometry(QgsAbstractGeometry *geom)
Sets geometry (takes ownership). Geometry is expected to be in map coordinates.
Abstract base class for all geometries.
A class to represent a 2D point.
A rubberband class for QgsAbstractGeometry (considering curved geometries).
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
GeometryType
The geometry types are used to group QgsWkbTypes::Type in a coarse way.
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.
Represents a vector layer which manages a vector based data sets.
Base class for all map layer types.
The class defines interface for querying point location:
Handles storage of information regarding WKB types and their properties.
Compound curve geometry type.
qint64 QgsFeatureId
64 bit feature ids negative numbers are used for uncommitted/newly added features