![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Shared "which conduit is under the cursor, and where along it" hit-test used by every tool that inserts a node by splitting a conduit (the generic add-node tools, Add Virtual Junction, Add Inlet Junction), plus the split-name generators. More...
#include <QPoint>#include <QPointF>#include <QString>Go to the source code of this file.
Classes | |
| struct | ConduitSplitPick::ConduitHit |
Namespaces | |
| namespace | ConduitSplitPick |
Functions | |
| ConduitHit | ConduitSplitPick::pickConduit (const MapCanvas *canvas, const QPoint &pixel) |
Hit-test CONDUITS only (pumps, weirs, orifices and outlets have no length to divide) across the canvas's visible SWMM model layers, with a 12-pixel tolerance at the current zoom. Computes the arclength position t of the closest point, kept off the ends so no sliver conduit results, and whether the conduit is a STREET section. | |
| QString | ConduitSplitPick::nextNodeName (const SWMMModelLayer *layer, const QString &elementKind) |
| QString | ConduitSplitPick::nextSplitLinkName (const SWMMModelLayer *layer, const QString &baseName) |
Shared "which conduit is under the cursor, and where along it" hit-test used by every tool that inserts a node by splitting a conduit (the generic add-node tools, Add Virtual Junction, Add Inlet Junction), plus the split-name generators.
One implementation replaces the byte-identical private copies the split tools used to carry (ADDNODE_SPLIT_REDESIGN_PLAN_2026-09-10.md step 1).