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
ProfilePlotWidget::SeriesBinding Struct Reference

One elevation-axis curve to render: a (results-layer × output kind) pair with resolved style and pre-computed data. More...

#include <profileplotwidget.h>

Collaboration diagram for ProfilePlotWidget::SeriesBinding:

Public Attributes

QString label
 
QColor color
 
ProfileBuilder::OutputKind kind = ProfileBuilder::OutputKind::HGL
 
std::shared_ptr< ProfileBuilder::SourceDerivedderived
 
QPen pen
 
QBrush brush
 
bool visible = true
 

Detailed Description

One elevation-axis curve to render: a (results-layer × output kind) pair with resolved style and pre-computed data.

Multi-output / multi-model overlay model: each SeriesBinding represents exactly one OutputKind (HGL, EGL, WaterSurface, MaxHGL, etc.). Bindings that share the same source results layer share the same derived shared_ptr so the per-period and envelope arrays are computed once and reused — important because EGL fill (velocity-head band) needs both HGL and EGL from the same source.

Styling is fully resolved before reaching the widget — the caller (typically ProfilePlotDialog) merges the layer's per-output pen/brush with any per-series override and hands the final QPen / QBrush in. No theme fallback inside the widget.

Member Data Documentation

◆ brush

QBrush ProfilePlotWidget::SeriesBinding::brush

◆ color

QColor ProfilePlotWidget::SeriesBinding::color

◆ derived

std::shared_ptr<ProfileBuilder::SourceDerived> ProfilePlotWidget::SeriesBinding::derived

◆ kind

ProfileBuilder::OutputKind ProfilePlotWidget::SeriesBinding::kind = ProfileBuilder::OutputKind::HGL

◆ label

QString ProfilePlotWidget::SeriesBinding::label

◆ pen

QPen ProfilePlotWidget::SeriesBinding::pen

◆ visible

bool ProfilePlotWidget::SeriesBinding::visible = true

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