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

Functions

ProfileBuilder::SourceSeries fetch (SWMMResultsLayer *resultsLayer, const ProfileBuilder::PathStatic &path, const QString &sourceId)
 Pulls NodeHead / NodeDepth (per path node) and LinkVelocity (per path link) from resultsLayer 's open .out file for the given path. The returned series is sized exactly to the path — nodeHead[i] corresponds to path.nodes[i] and linkVelocity[i] to path.links[i].
 
bool appendTail (SWMMResultsLayer *resultsLayer, const ProfileBuilder::PathStatic &path, ProfileBuilder::SourceSeries &series)
 Live results: extends a series previously returned by fetch for the same path with the periods resultsLayer has gained since ([series.periodCount, totalTimeSteps())), reading only that tail from the .out. Rows the initial fetch left empty (object absent from the output) stay empty. Updates series.periodCount.
 

Function Documentation

◆ appendTail()

bool ProfileSourceFetcher::appendTail ( SWMMResultsLayer resultsLayer,
const ProfileBuilder::PathStatic path,
ProfileBuilder::SourceSeries series 
)

Live results: extends a series previously returned by fetch for the same path with the periods resultsLayer has gained since ([series.periodCount, totalTimeSteps())), reading only that tail from the .out. Rows the initial fetch left empty (object absent from the output) stay empty. Updates series.periodCount.

Returns
false when the layer has no handle, shrank, or series was not fetched for this path; true otherwise (including nothing new).
Here is the call graph for this function:

◆ fetch()

ProfileBuilder::SourceSeries ProfileSourceFetcher::fetch ( SWMMResultsLayer resultsLayer,
const ProfileBuilder::PathStatic path,
const QString &  sourceId 
)

Pulls NodeHead / NodeDepth (per path node) and LinkVelocity (per path link) from resultsLayer 's open .out file for the given path. The returned series is sized exactly to the path — nodeHead[i] corresponds to path.nodes[i] and linkVelocity[i] to path.links[i].

Resolves engine indices via name (path.nodes[i].name / path.links[i].name) into the layer's output-index maps. Nodes or links not present in the output file get zero-filled series.

Returns an empty SourceSeries (with periodCount = 0) if the layer has no open output handle.

Here is the call graph for this function: