26#ifndef OPENSWMM_RENDER_DIAGRAMSPEC_H
27#define OPENSWMM_RENDER_DIAGRAMSPEC_H
90 [[nodiscard]] QJsonObject
toJson()
const;
95 {
return !(*
this == other); }
DiagramType t
Definition diagramspec.cpp:20
double s
Scene px per model length unit.
Definition inletdrawingview.cpp:82
Definition gisrasterlayer.h:40
QString diagramTypeToString(DiagramType t)
Definition diagramspec.cpp:30
DiagramType
Chart kind painted per feature.
Definition diagramspec.h:44
DiagramType diagramTypeFromString(const QString &s)
Definition diagramspec.cpp:37
Per-layer diagram configuration.
Definition diagramspec.h:59
DiagramType type
Chart kind.
Definition diagramspec.h:64
bool enabled
Master switch. When false, no chart is painted.
Definition diagramspec.h:61
bool operator==(const DiagramSpec &other) const
Definition diagramspec.cpp:104
QString seriesExpression
For TimeSeries: an expression that evaluates per feature to a vector of doubles. Empty for static cha...
Definition diagramspec.h:73
QStringList attributes
For static charts (Pie / Bar / Histogram): which attribute names drive the bars / wedges....
Definition diagramspec.h:69
QSizeF sizePx
Chart bounding-box size in pixels.
Definition diagramspec.h:76
qreal rangeMax
Definition diagramspec.h:88
static DiagramSpec fromJson(const QJsonObject &j)
Definition diagramspec.cpp:79
QPointF offsetPx
Offset from the feature's anchor point in pixels.
Definition diagramspec.h:79
qreal rangeMin
Value range for bars / histogram (min, max). Both zero = auto-fit to the data.
Definition diagramspec.h:87
bool operator!=(const DiagramSpec &other) const
Definition diagramspec.h:94
QJsonObject toJson() const
Definition diagramspec.cpp:44
QVector< QColor > palette
Color palette for wedges / bars. Empty → use the layer's categorical palette default.
Definition diagramspec.h:83