QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
qgsmaptoolcapturelayergeometry.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmaptoolcapturelayergeometry.h - base class for map tools digitizing layer geometries
3 ---------------------
4 begin : January 2022
5 copyright : (C) Denis Rouzaud
7 ***************************************************************************
8 * *
9 * This program is free software; you can redistribute it and/or modify *
10 * it under the terms of the GNU General Public License as published by *
11 * the Free Software Foundation; either version 2 of the License, or *
12 * (at your option) any later version. *
13 * *
14 ***************************************************************************/
15
16#ifndef QGSMAPTOOLCAPTURELAYERGEOMETRY_H
17#define QGSMAPTOOLCAPTURELAYERGEOMETRY_H
18
19#include "qgsmaptoolcapture.h"
20
22class QgsMapCanvas;
23
31{
32 Q_OBJECT
33 public:
36 : QgsMapToolCapture( canvas, cadDockWidget, mode )
37 {}
38
39 private:
40 void geometryCaptured( const QgsGeometry &geometry ) override;
41
46 virtual void layerGeometryCaptured( const QgsGeometry &geometry ) {Q_UNUSED( geometry )} SIP_FORCE
47
52 virtual void layerPointCaptured( const QgsPoint &point ) {Q_UNUSED( point )} SIP_FORCE
53
58 virtual void layerLineCaptured( const QgsCurve *line ) {Q_UNUSED( line )} SIP_FORCE
59
64 virtual void layerPolygonCaptured( const QgsCurvePolygon *polygon ) {Q_UNUSED( polygon )} SIP_FORCE
65};
66
67#endif // QGSMAPTOOLCAPTURELAYERGEOMETRY_H
The QgsAdvancedDigitizingDockWidget class is a dockable widget used to handle the CAD tools on top of...
Curve polygon geometry type.
Abstract base class for curved geometry type.
Definition qgscurve.h:35
A geometry is the spatial representation of a feature.
Map canvas is a class for displaying all GIS data types on a canvas.
QgsMapToolCaptureLayerGeometry is a base class for map tools digitizing layer geometries This map too...
QgsMapToolCaptureLayerGeometry(QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode)
Constructor.
QgsMapToolCapture is a base class capable of capturing point, lines and polygons.
CaptureMode
Different capture modes.
Point geometry type, with support for z-dimension and m-values.
Definition qgspoint.h:49
#define SIP_FORCE
Definition qgis_sip.h:131