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

Helpers that pull a ProfileBuilder::SourceSeries from a live SWMMResultsLayer for a given path. More...

#include "plot/profilebuilder.h"
#include <QString>
Include dependency graph for profilesourcefetcher.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ProfileSourceFetcher
 

Functions

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].
 
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.
 

Detailed Description

Helpers that pull a ProfileBuilder::SourceSeries from a live SWMMResultsLayer for a given path.

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Used by ProfilePlotDialog to materialize the per-source data the plot widget needs. Kept separate from the dialog so the engine-output call sequence has one home and can be reused by Stage 5's Library Dock when re-binding a saved profile to a different results layer.