QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
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
6  email : [email protected]
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 
22 class QgsMapCanvas;
23 
31 {
32  public:
35  : QgsMapToolCapture( canvas, cadDockWidget, mode )
36  {}
37 
38  private:
39  void geometryCaptured( const QgsGeometry &geometry ) override;
40 
45  virtual void layerGeometryCaptured( const QgsGeometry &geometry ) {Q_UNUSED( geometry )} SIP_FORCE
46 
51  virtual void layerPointCaptured( const QgsPoint &point ) {Q_UNUSED( point )} SIP_FORCE
52 
57  virtual void layerLineCaptured( const QgsCurve *line ) {Q_UNUSED( line )} SIP_FORCE
58 
63  virtual void layerPolygonCaptured( const QgsCurvePolygon *polygon ) {Q_UNUSED( polygon )} SIP_FORCE
64 };
65 
66 #endif // QGSMAPTOOLCAPTURELAYERGEOMETRY_H
QgsCurve
Abstract base class for curved geometry type.
Definition: qgscurve.h:35
QgsPoint
Point geometry type, with support for z-dimension and m-values.
Definition: qgspoint.h:48
QgsMapToolCapture::CaptureMode
CaptureMode
Different capture modes.
Definition: qgsmaptoolcapture.h:56
QgsCurvePolygon
Curve polygon geometry type.
Definition: qgscurvepolygon.h:34
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:89
QgsMapToolCaptureLayerGeometry::QgsMapToolCaptureLayerGeometry
QgsMapToolCaptureLayerGeometry(QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode)
Constructor.
Definition: qgsmaptoolcapturelayergeometry.h:34
QgsMapToolCaptureLayerGeometry
QgsMapToolCaptureLayerGeometry is a base class for map tools digitizing layer geometries This map too...
Definition: qgsmaptoolcapturelayergeometry.h:30
QgsAdvancedDigitizingDockWidget
The QgsAdvancedDigitizingDockWidget class is a dockable widget used to handle the CAD tools on top of...
Definition: qgsadvanceddigitizingdockwidget.h:50
SIP_FORCE
#define SIP_FORCE
Definition: qgis_sip.h:131
QgsGeometry
A geometry is the spatial representation of a feature.
Definition: qgsgeometry.h:124
qgsmaptoolcapture.h
QgsMapToolCapture
Definition: qgsmaptoolcapture.h:49