QGIS API Documentation 3.43.0-Master (c67cf405802)
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 : denis@opengis.ch
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
32{
33 Q_OBJECT
34 public:
37 : QgsMapToolCapture( canvas, cadDockWidget, mode )
38 {}
39
40 private:
41 void geometryCaptured( const QgsGeometry &geometry ) override;
42
47 virtual void layerGeometryCaptured( const QgsGeometry &geometry ) SIP_FORCE { Q_UNUSED( geometry ) }
48
53 virtual void layerPointCaptured( const QgsPoint &point ) SIP_FORCE { Q_UNUSED( point ) }
54
59 virtual void layerLineCaptured( const QgsCurve *line ) SIP_FORCE { Q_UNUSED( line ) }
60
65 virtual void layerPolygonCaptured( const QgsCurvePolygon *polygon ) SIP_FORCE { Q_UNUSED( polygon ) }
66};
67
68#endif // QGSMAPTOOLCAPTURELAYERGEOMETRY_H
A dockable widget used to handle the CAD tools on top of a selection of map tools.
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.
Base class for map tools digitizing layer geometries.
QgsMapToolCaptureLayerGeometry(QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode)
Constructor.
Base class for map tools 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