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
maptoolmeshselectedge.h File Reference
#include "map/tools/maptool.h"
#include "plot/plotattribute.h"
#include <QPoint>
#include <QPointer>
Include dependency graph for maptoolmeshselectedge.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MapToolMeshSelectEdge
 

Detailed Description

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

Slice §V.VB — map tool that picks 2D mesh edges by single click or box rubber-band. Defaults to boundary-only (the BC-meaningful subset). Press "A" while the tool is active to toggle including interior edges (rare; mainly diagnostic) — "B" to revert to boundary-only.

Picks are reported via SelectionManager using MeshObjectRef-encoded SWMMObjectRef names; same modifier grammar as MapToolMeshSelectVertex, except that Ctrl/⌘ is repurposed here for boundary path picking (see below) instead of Toggle.

Ctrl/⌘ + click on a boundary edge Adds the shortest chain of boundary edges (inclusive of both ends) between it and the run's starting edge to the selection. "Shortest" is geometric length.

The starting edge is, in order of preference:

  1. an explicitly placed anchor (see below);
  2. the edge this tool last selected on its own — a plain click, or the far end of the path it just committed, which is what makes runs chain: each Ctrl/⌘ + click extends the boundary run;
  3. the single selected edge, when the selection holds exactly one for this mesh (e.g. picked from another view). With nothing to start from — empty or ambiguous selection — the first Ctrl/⌘ + click instead places the anchor, drawn distinctly, and the next one commits the path.