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
openswmmvis::plot::SeriesData Struct Reference

Result of one series resolution. Times are SWMM DateTime doubles (OLE-Automation epoch, not astronomical Julian — see core/swmmdatetime.h); values are in the unit system the source advertises. More...

#include <irunlayer.h>

Collaboration diagram for openswmmvis::plot::SeriesData:

Public Attributes

std::vector< doubletimesJulian
 SWMM DateTime; convert via openswmmvis::core::swmmDateTimeToQDateTime.
 
std::vector< doublevalues
 Same length as timesJulian.
 
bool ok = false
 False if the source couldn't fulfil the request.
 
QString errorMessage
 Populated when ok == false.
 
int firstPeriod = 0
 
int periodCount = 0
 

Detailed Description

Result of one series resolution. Times are SWMM DateTime doubles (OLE-Automation epoch, not astronomical Julian — see core/swmmdatetime.h); values are in the unit system the source advertises.

Member Data Documentation

◆ errorMessage

QString openswmmvis::plot::SeriesData::errorMessage

Populated when ok == false.

◆ firstPeriod

int openswmmvis::plot::SeriesData::firstPeriod = 0

INPUT — first period (0-based) to resolve. A live chart that already holds periods [0, n) asks for n and gets only the tail; before this the comparison plot re-read every series in full on every live tick (O(run length) per tick, and a full-mesh copy per frame for 2D velocity / rainfall). Sources clamp it to [0, periodCount]; a source that ignores it simply returns the whole series (still correct — the chart de-duplicates by time).

◆ ok

bool openswmmvis::plot::SeriesData::ok = false

False if the source couldn't fulfil the request.

◆ periodCount

int openswmmvis::plot::SeriesData::periodCount = 0

OUTPUT — periods the source held when it answered (0 = not reported). The caller stores it as the next firstPeriod.

◆ timesJulian

std::vector<double> openswmmvis::plot::SeriesData::timesJulian

SWMM DateTime; convert via openswmmvis::core::swmmDateTimeToQDateTime.

◆ values

std::vector<double> openswmmvis::plot::SeriesData::values

Same length as timesJulian.


The documentation for this struct was generated from the following file: