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

Typed config for the Layer Properties โ†’ Diagrams tab (Slice Z.12). More...

#include <QColor>
#include <QJsonObject>
#include <QPointF>
#include <QSizeF>
#include <QString>
#include <QStringList>
#include <QVector>
Include dependency graph for diagramspec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  OpenSWMM::Render::DiagramSpec
 Per-layer diagram configuration. More...
 

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Enumerations

enum class  OpenSWMM::Render::DiagramType : int {
  OpenSWMM::Render::Pie = 0 ,
  OpenSWMM::Render::Bar = 1 ,
  OpenSWMM::Render::TimeSeries = 2 ,
  OpenSWMM::Render::Histogram = 3
}
 Chart kind painted per feature. More...
 

Functions

QString OpenSWMM::Render::diagramTypeToString (DiagramType t)
 
DiagramType OpenSWMM::Render::diagramTypeFromString (const QString &s)
 

Detailed Description

Typed config for the Layer Properties โ†’ Diagrams tab (Slice Z.12).

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
    RENDERING_RULE_MODEL_PLAN.md ยง11.1 โ€” embedded pie / bar /
    time-series / histogram charts attached to each feature.
    SWMM use cases:
      - Junction with embedded depth-vs-time micro-chart that
        animates with the timeline
      - Storage unit with pie of inflow-source fractions
      - Subcatchment with bar of runoff vs infiltration

    For static charts (Pie / Bar / Histogram), `attributes` lists
    the field names that drive the bars / wedges. For time-series
    charts, `seriesExpression` evaluates per-feature to a vector
    that the chart consumes per animation tick.

    Slice Z.12-data ships the value type + JSON round-trip. The
    tab UI, the per-feature chart painter, and the seriesExpression
    evaluator integration are separate slices.