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
maptooladdgage.h
Go to the documentation of this file.
1
8#ifndef MAPTOOLADDGAGE_H
9#define MAPTOOLADDGAGE_H
10
11#include "map/tools/maptool.h"
12#include <QString>
13
14class SWMMModelLayer;
15
17{
18 Q_OBJECT
19
20public:
21 explicit OpenSWMMVisMapToolAddGage(MapCanvas *canvas, QObject *parent = nullptr);
22 [[nodiscard]] QCursor cursor() const override;
23 void mousePressEvent(QMouseEvent *event) override;
24
25signals:
26 void gageAdded(const QString &name, double x, double y);
27
28private:
29 [[nodiscard]] SWMMModelLayer *activeModelLayer() const;
30 [[nodiscard]] QString nextAvailableName(SWMMModelLayer *layer) const;
31};
32
33#endif // MAPTOOLADDGAGE_H
The central map display widget — QGIS-style hybrid rendering.
Definition mapcanvas.h:63
Definition maptooladdgage.h:17
void mousePressEvent(QMouseEvent *event) override
Definition maptooladdgage.cpp:43
QCursor cursor() const override
Returns the mouse cursor to display while this tool is active.
Definition maptooladdgage.cpp:22
void gageAdded(const QString &name, double x, double y)
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
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
Abstract base class for all interactive tools attached to a MapCanvas.
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString name
Definition sectionmodelbuilders.cpp:474