![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
"Pick a node on the map" for dialogs and property editors. More...
#include <QObject>#include <QPointer>#include <QString>Go to the source code of this file.
Classes | |
| class | NodePickSession |
"Pick a node on the map" for dialogs and property editors.
Creating a session saves the canvas's active tool, pushes a
OpenSWMMVisMapToolPickNode and forwards its picks; finishing (or
destroying) the session restores the previous tool. The consumer
decides what to do with a pick — reject an ineligible node and keep
waiting, or accept it and finish(). Switching to another canvas tool
while the session is active counts as a cancel.
Parent the session to whatever must outlive the wait: a non-modal
dialog, or — for a property-grid cell editor, which the grid closes
the moment the map takes focus — the layer itself, with the result
written through the layer rather than through the editor.