![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Slice CF.3.3 — canvas map tool that selects 2D mesh cells via box or lasso, then emits the picked triangle index list. More...
#include "map/tools/maptool.h"#include "plot/plotattribute.h"#include <QPoint>#include <QPolygon>#include <QPolygonF>#include <QPointer>#include <QRectF>#include <QVector>Go to the source code of this file.
Classes | |
| class | MapToolPick2DCells |
Slice CF.3.3 — canvas map tool that selects 2D mesh cells via box or lasso, then emits the picked triangle index list.
Behaviour:
SWMM2DResultsLayer::pickCellsInRect and emits the result. Mirrors the existing OpenSWMMVisMapToolSelect rubber-band logic.pickCellsInPolygon. Mirrors MapToolAddSubcatchment's polygon state machine.pickCellAt and emits a one-element list, falling back to box mode for selection.The tool finds the first SWMM2DResultsLayer on the canvas at activate() time; selection is reported against that layer. The host wire is cellsPicked(layer, triIdxList) which SWMMVis::openComparisonPlotForCells consumes.