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

Slice BL — IRunLayer adapter wrapping a SWMMResultsLayer (1D .out). More...

#include "plot/irunlayer.h"
#include <QPointer>
Include dependency graph for swmmoutrunlayer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::plot::SwmmOutRunLayer
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::plot
 

Detailed Description

Slice BL — IRunLayer adapter wrapping a SWMMResultsLayer (1D .out).

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

One SwmmOutRunLayer is the bridge between the Comparison Plot Dialog's model layer (which thinks in terms of IRunLayer + ObjectRef) and the existing on-canvas SWMMResultsLayer that already holds the open .out handle.

The adapter is non-owning — it holds a raw SWMMResultsLayer* and resolves it on every call. When the underlying layer is destroyed (e.g. project window closed), the adapter detects the dangling pointer via a QPointer guard and returns ok=false from getSeriesAt.

No standalone .out support yet; Tools → Comparison Plot → Load Run… (a follow-up) will spin up a parallel "headless" adapter that owns its own SWMM_Output handle.