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::Mesh2DRunLayer Class Referencefinal

#include <mesh2drunlayer.h>

Inheritance diagram for openswmmvis::plot::Mesh2DRunLayer:
Collaboration diagram for openswmmvis::plot::Mesh2DRunLayer:

Public Member Functions

 Mesh2DRunLayer (SWMM2DResultsLayer *layer)
 
 ~Mesh2DRunLayer () override=default
 
SWMM2DResultsLayerlayer () const
 
QString scenarioName () const override
 Human label shown in the SeriesPanel tree + legends.
 
UnitSystem unitSystem () const override
 Unit system the source advertises (drives axis labels).
 
double startDateJulian () const override
 Start date of the simulation as SWMM Julian, or NaN if unknown.
 
int periodCount () const override
 Total number of time periods available (grows during live mode).
 
int reportStepSeconds () const override
 Report step in seconds. 0 if unknown.
 
QString persistenceKey () const override
 Stable identity string for .oswp round-trip. Defaults to the scenario name; subclasses may override with a file path or layer GUID.
 
void getSeriesAt (const ObjectRef &ref, PlotAttribute attr, SeriesData &out) const override
 Resolve a series. Returns timesJulian + values for the spec. Implementations are responsible for resolving ref against their own indexing (e.g. SWMM ID → output-file index, triIdx → mesh face). When ref or attr is not supported, set out.ok = false and fill out.errorMessage.
 
bool supportsAttribute (PlotAttribute attr) const override
 Convenience: does this source carry the given attribute at all? Default impl returns true; subclasses can refine (e.g. hide velocity attributes when CF.2 edge-flux data is missing).
 
- Public Member Functions inherited from openswmmvis::plot::IRunLayer
virtual ~IRunLayer ()=default
 
virtual void getSeriesAt (const ObjectRef &ref, const ResultDescriptor &descriptor, SeriesData &out) const
 Y2b-2 (amendment D-Y4): resolve a series by DESCRIPTOR. Fixed attributes forward to the enum overload above; a species refuses with a precise message — only sources that actually carry species columns override this (SwmmOutRunLayer).
 
virtual QVector< ResultDescriptorresultDescriptorsForKind (ObjectRef::Kind kind) const
 Y2b-1 (amendment D-Y4): everything plottable for kind on THIS run — the fixed attribute set as descriptors, plus any dynamic species the run carries. Base impl serves the fixed set only, which is exactly right for sources with no species (observed CSV, mesh layers, a legacy .out with no quality). SwmmOutRunLayer overrides to append the open run's species by name.
 

Constructor & Destructor Documentation

◆ Mesh2DRunLayer()

openswmmvis::plot::Mesh2DRunLayer::Mesh2DRunLayer ( SWMM2DResultsLayer layer)
explicit

◆ ~Mesh2DRunLayer()

openswmmvis::plot::Mesh2DRunLayer::~Mesh2DRunLayer ( )
overridedefault

Member Function Documentation

◆ getSeriesAt()

void openswmmvis::plot::Mesh2DRunLayer::getSeriesAt ( const ObjectRef ref,
PlotAttribute  attr,
SeriesData out 
) const
overridevirtual

Resolve a series. Returns timesJulian + values for the spec. Implementations are responsible for resolving ref against their own indexing (e.g. SWMM ID → output-file index, triIdx → mesh face). When ref or attr is not supported, set out.ok = false and fill out.errorMessage.

Implements openswmmvis::plot::IRunLayer.

Here is the call graph for this function:

◆ layer()

SWMM2DResultsLayer * openswmmvis::plot::Mesh2DRunLayer::layer ( ) const
inline

◆ periodCount()

int openswmmvis::plot::Mesh2DRunLayer::periodCount ( ) const
overridevirtual

Total number of time periods available (grows during live mode).

Implements openswmmvis::plot::IRunLayer.

◆ persistenceKey()

QString openswmmvis::plot::Mesh2DRunLayer::persistenceKey ( ) const
overridevirtual

Stable identity string for .oswp round-trip. Defaults to the scenario name; subclasses may override with a file path or layer GUID.

Reimplemented from openswmmvis::plot::IRunLayer.

◆ reportStepSeconds()

int openswmmvis::plot::Mesh2DRunLayer::reportStepSeconds ( ) const
overridevirtual

Report step in seconds. 0 if unknown.

Implements openswmmvis::plot::IRunLayer.

◆ scenarioName()

QString openswmmvis::plot::Mesh2DRunLayer::scenarioName ( ) const
overridevirtual

Human label shown in the SeriesPanel tree + legends.

Implements openswmmvis::plot::IRunLayer.

◆ startDateJulian()

double openswmmvis::plot::Mesh2DRunLayer::startDateJulian ( ) const
overridevirtual

Start date of the simulation as SWMM Julian, or NaN if unknown.

Implements openswmmvis::plot::IRunLayer.

Here is the call graph for this function:

◆ supportsAttribute()

bool openswmmvis::plot::Mesh2DRunLayer::supportsAttribute ( PlotAttribute  ) const
overridevirtual

Convenience: does this source carry the given attribute at all? Default impl returns true; subclasses can refine (e.g. hide velocity attributes when CF.2 edge-flux data is missing).

Reimplemented from openswmmvis::plot::IRunLayer.

Here is the call graph for this function:

◆ unitSystem()

UnitSystem openswmmvis::plot::Mesh2DRunLayer::unitSystem ( ) const
overridevirtual

Unit system the source advertises (drives axis labels).

Implements openswmmvis::plot::IRunLayer.


The documentation for this class was generated from the following files: