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 Namespace Reference

Classes

struct  ConduitHit
 

Functions

ConduitHit 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 nextNodeName (const SWMMModelLayer *layer, const QString &elementKind)
 
QString nextSplitLinkName (const SWMMModelLayer *layer, const QString &baseName)
 

Function Documentation

◆ nextNodeName()

QString ConduitSplitPick::nextNodeName ( const SWMMModelLayer layer,
const QString &  elementKind 
)

<prefix>1, <prefix>2, … — first name free in layer, where the prefix is PreferencesManager::elementNamePrefix(elementKind).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ nextSplitLinkName()

QString ConduitSplitPick::nextSplitLinkName ( const SWMMModelLayer layer,
const QString &  baseName 
)

<base>_B, then <base>_B1, <base>_B2, … — the downstream half's name.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pickConduit()

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.

Returns
An invalid hit when nothing qualifies.
Here is the call graph for this function:
Here is the caller graph for this function: