QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
maptools
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
21
class
QgsAdvancedDigitizingDockWidget
;
22
class
QgsMapCanvas
;
23
31
class
GUI_EXPORT
QgsMapToolCaptureLayerGeometry
:
public
QgsMapToolCapture
32
{
33
Q_OBJECT
34
public
:
36
QgsMapToolCaptureLayerGeometry
(
QgsMapCanvas
*
canvas
,
QgsAdvancedDigitizingDockWidget
*
cadDockWidget
,
CaptureMode
mode
)
37
:
QgsMapToolCapture
(
canvas
,
cadDockWidget
,
mode
)
38
{}
39
45
virtual
void
layerGeometryCaptured
(
const
QgsGeometry
&geometry ) { Q_UNUSED( geometry ) }
46
52
virtual
void
layerPointCaptured
(
const
QgsPoint
&point ) { Q_UNUSED( point ) }
53
59
virtual
void
layerLineCaptured
(
const
QgsCurve
*line ) { Q_UNUSED( line ) }
60
66
virtual
void
layerPolygonCaptured
(
const
QgsCurvePolygon
*polygon ) { Q_UNUSED( polygon ) }
67
68
void
geometryCaptured
(
const
QgsGeometry
&geometry )
override
;
69
};
70
71
#endif
// QGSMAPTOOLCAPTURELAYERGEOMETRY_H
QgsAdvancedDigitizingDockWidget
A dockable widget used to handle the CAD tools on top of a selection of map tools.
Definition
qgsadvanceddigitizingdockwidget.h:55
QgsCurvePolygon
Curve polygon geometry type.
Definition
qgscurvepolygon.h:41
QgsCurve
Abstract base class for curved geometry type.
Definition
qgscurve.h:36
QgsGeometry
A geometry is the spatial representation of a feature.
Definition
qgsgeometry.h:267
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsMapToolAdvancedDigitizing::cadDockWidget
QgsAdvancedDigitizingDockWidget * cadDockWidget() const
Definition
qgsmaptooladvanceddigitizing.h:70
QgsMapToolCaptureLayerGeometry::layerGeometryCaptured
virtual void layerGeometryCaptured(const QgsGeometry &geometry)
Called when the geometry is captured.
Definition
qgsmaptoolcapturelayergeometry.h:45
QgsMapToolCaptureLayerGeometry::layerPolygonCaptured
virtual void layerPolygonCaptured(const QgsCurvePolygon *polygon)
Called when a polygon is captured.
Definition
qgsmaptoolcapturelayergeometry.h:66
QgsMapToolCaptureLayerGeometry::QgsMapToolCaptureLayerGeometry
QgsMapToolCaptureLayerGeometry(QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode)
Constructor.
Definition
qgsmaptoolcapturelayergeometry.h:36
QgsMapToolCaptureLayerGeometry::layerLineCaptured
virtual void layerLineCaptured(const QgsCurve *line)
Called when a line is captured.
Definition
qgsmaptoolcapturelayergeometry.h:59
QgsMapToolCaptureLayerGeometry::layerPointCaptured
virtual void layerPointCaptured(const QgsPoint &point)
Called when a point is captured.
Definition
qgsmaptoolcapturelayergeometry.h:52
QgsMapToolCapture::mode
CaptureMode mode() const
The capture mode.
Definition
qgsmaptoolcapture.h:123
QgsMapToolCapture::QgsMapToolCapture
QgsMapToolCapture(QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode)
constructor
Definition
qgsmaptoolcapture.cpp:62
QgsMapToolCapture::geometryCaptured
virtual void geometryCaptured(const QgsGeometry &geometry)
Called when the geometry is captured.
Definition
qgsmaptoolcapture.h:362
QgsMapToolCapture::CaptureMode
CaptureMode
Different capture modes.
Definition
qgsmaptoolcapture.h:62
QgsMapTool::canvas
QgsMapCanvas * canvas() const
returns pointer to the tool's map canvas
Definition
qgsmaptool.cpp:236
QgsPoint
Point geometry type, with support for z-dimension and m-values.
Definition
qgspoint.h:53
qgsmaptoolcapture.h
Generated on
for QGIS API Documentation by
1.17.0