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

Go to the source code of this file.

Classes

class  MapToolMeshSelectVertex
 

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 vertices by single click (within 12 px tolerance) or by box rubber-band. Drops everything to the project's SelectionManager via MeshObjectRef-encoded SWMMObjectRef names, so the toolbar's spinbox, the future Property Browser tab, and the Attribute Table all see the same selection.

Modifiers:

  • Plain click → Replace
  • Shift+click → Add to selection
  • Ctrl/⌘+click → Toggle
  • Drag a box → Replace with all vertices inside the box
  • Shift+drag a box → Add the box's vertices
  • Esc → Clear

The tool finds the active SWMM2DMeshLayer on the canvas at every activation; if none is active, the tool is a no-op until one is set.