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

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>
Include dependency graph for conduitsplitpick.h:
This graph shows which files directly or indirectly include this file:

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)
 

Detailed Description

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.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026

One implementation replaces the byte-identical private copies the split tools used to carry (ADDNODE_SPLIT_REDESIGN_PLAN_2026-09-10.md step 1).