SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
maptooladdtext.h
Go to the documentation of this file.
1
13#ifndef OPENSWMMVIS_MAP_TOOLS_MAPTOOLADDTEXT_H
14#define OPENSWMMVIS_MAP_TOOLS_MAPTOOLADDTEXT_H
15
16#include "map/tools/maptool.h"
17
19
21{
22 Q_OBJECT
23public:
28 QObject *parent = nullptr);
29
30 [[nodiscard]] QCursor cursor() const override;
31
32 void mousePressEvent(QMouseEvent *event) override;
33
34signals:
36 void annotationAdded(const QString &id);
37
38private:
39 OpenSWMMVisAnnotationLayer *m_layer = nullptr;
40};
41
42#endif // OPENSWMMVIS_MAP_TOOLS_MAPTOOLADDTEXT_H
The central map display widget — QGIS-style hybrid rendering.
Definition mapcanvas.h:63
Definition annotationlayer.h:30
Definition maptooladdtext.h:21
void annotationAdded(const QString &id)
QCursor cursor() const override
Returns the mouse cursor to display while this tool is active.
Definition maptooladdtext.cpp:39
void mousePressEvent(QMouseEvent *event) override
Definition maptooladdtext.cpp:44
Abstract base class for interactive map tools used in the MapCanvas.
Definition maptool.h:43
MapCanvas * canvas() const
Returns the MapCanvas this tool is attached to.
Definition maptool.cpp:29
Abstract base class for all interactive tools attached to a MapCanvas.
QVector< int > parent
union-find
Definition pslgminsize.cpp:176