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
maptoolplotpick.h File Reference

Slice AT.2 — transient map tool that lets the Comparison Plot Dialog harvest object picks from the canvas without leaving the dialog open. More...

#include "map/tools/maptool.h"
#include "plot/plotattribute.h"
#include "plot/resultdescriptor.h"
#include <QStringList>
#include "selection/selectionmanager.h"
Include dependency graph for maptoolplotpick.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMMVisMapToolPlotPick
 

Detailed Description

Slice AT.2 — transient map tool that lets the Comparison Plot Dialog harvest object picks from the canvas without leaving the dialog open.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Pushed onto the active canvas when the user toggles the dialog's "Add from Map…" toolbar action. Each left-click hit-tests the visible SWMM model layers, pops the AttributePickerMenu at the cursor, and emits objectPicked(SWMMObjectRef, PlotAttribute) for the chosen attribute. Stays active across clicks; Escape, or un-checking the dialog's toolbar action, pops the tool and restores the previous one.

Background-hit clicks (no object under cursor) emit plotSystemRequested(PlotAttribute) via the system-attribute submenu — same as OpenSWMMVisMapToolSelect::showContextMenu does on right-click.