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
maptooladdinletnode.h
Go to the documentation of this file.
1
8#ifndef MAPTOOLADDINLETNODE_H
9#define MAPTOOLADDINLETNODE_H
10
12#include "map/tools/maptool.h"
13
14#include <QPointer>
15#include <QString>
16
17class SWMMModelLayer;
18namespace openswmmvis::ui { class InletJunctionSetupDialog; }
19
44{
45 Q_OBJECT
46
47public:
49 QObject *parent = nullptr);
51
54
55 [[nodiscard]] QCursor cursor() const override;
56
57 void activate() override;
58 void deactivate() override;
59
60 void mousePressEvent (QMouseEvent *event) override;
61 void mouseReleaseEvent(QMouseEvent *event) override;
62 void mouseMoveEvent (QMouseEvent *event) override;
63 void paint(QPainter *painter, const MapExtent &extent,
64 const SpatialReferenceSystem *srs) override;
65
66signals:
67 void inletJunctionAdded(const QString &nodeName,
68 const QString &splitLinkName,
69 const QString &newLinkName);
70 void statusMessageChanged(const QString &message);
71
72private:
74 bool m_armed = false;
75 QPointer<openswmmvis::ui::InletJunctionSetupDialog> m_pendingDialog;
76};
77
78#endif // MAPTOOLADDINLETNODE_H
The central map display widget — QGIS-style hybrid rendering.
Definition mapcanvas.h:63
An axis-aligned bounding box in the coordinate space of a given CRS.
Definition mapextent.h:26
Left-click a STREET conduit to split it and insert an inlet junction at the picked point.
Definition maptooladdinletnode.h:44
QCursor cursor() const override
Returns the mouse cursor to display while this tool is active.
Definition maptooladdinletnode.cpp:40
void inletJunctionAdded(const QString &nodeName, const QString &splitLinkName, const QString &newLinkName)
void mouseMoveEvent(QMouseEvent *event) override
Definition maptooladdinletnode.cpp:62
void statusMessageChanged(const QString &message)
openswmmvis::ui::InletJunctionSetupDialog * pendingDialog() const
Definition maptooladdinletnode.cpp:35
void mousePressEvent(QMouseEvent *event) override
Definition maptooladdinletnode.cpp:69
void mouseReleaseEvent(QMouseEvent *event) override
Definition maptooladdinletnode.cpp:77
void paint(QPainter *painter, const MapExtent &extent, const SpatialReferenceSystem *srs) override
Called by the canvas in drawForeground() so the tool can draw transient overlay graphics (rubber-band...
Definition maptooladdinletnode.cpp:182
~OpenSWMMVisMapToolAddInletNode() override
Definition maptooladdinletnode.cpp:28
void deactivate() override
Called by the canvas when another tool replaces this one.
Definition maptooladdinletnode.cpp:54
void activate() override
Called by the canvas when this tool becomes the active tool.
Definition maptooladdinletnode.cpp:45
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
Represents a coordinate reference system backed by a GDAL OGRSpatialReference.
Definition spatialreferencesystem.h:28
Definition inletjunctionsetupdialog.h:46
Shared "which conduit is under the cursor, and where along it" hit-test used by every tool that inser...
QString nodeName
Definition importplanning.cpp:95
Abstract base class for all interactive tools attached to a MapCanvas.
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString message
Definition queryparser.cpp:150
Definition conduitsplitpick.h:31