20#ifndef OPENSWMMVIS_PLOT_SERIESSTYLE_H
21#define OPENSWMMVIS_PLOT_SERIESSTYLE_H
50 QColor
color = QColor(31, 119, 180);
57 Qt::PenStyle
dash = Qt::SolidLine;
81 QJsonObject
toJson()
const;
127 QScatterSeries* markerOverlay =
nullptr);
double s
Scene px per model length unit.
Definition inletdrawingview.cpp:82
Definition chartproperties.h:34
Qt::PenCapStyle penCapStyleFromString(const QString &s)
Definition seriesstyle.cpp:119
NumberFormatMode
Interpretation of NumberFormat::count.
Definition numberformat.h:32
@ Decimals
Fixed-point: count digits after the point ('f').
QString penJoinStyleToString(Qt::PenJoinStyle s)
Definition seriesstyle.cpp:126
MarkerShape markerShapeFromString(const QString &s)
Definition seriesstyle.cpp:78
Qt::PenJoinStyle penJoinStyleFromString(const QString &s)
Definition seriesstyle.cpp:137
MarkerShape
Marker shape used when SeriesStyle::showMarkers == true.
Definition seriesstyle.h:38
Qt::PenStyle penStyleFromString(const QString &s)
Definition seriesstyle.cpp:100
QString penStyleToString(Qt::PenStyle s)
String key for Qt::PenStyle (Solid / Dash / Dot / DashDot / DashDotDot).
Definition seriesstyle.cpp:88
QPen penForStyle(const SeriesStyle &style)
Build a QPen from the line-related fields of style. Width / cap / join / dash all wired up; colour wi...
Definition seriesstyle.cpp:270
QString penCapStyleToString(Qt::PenCapStyle s)
String keys for Qt::PenCapStyle and Qt::PenJoinStyle (JSON round-trip).
Definition seriesstyle.cpp:109
QString markerShapeToString(MarkerShape s)
String key for MarkerShape ↔ JSON.
Definition seriesstyle.cpp:65
void applySeriesStyle(const SeriesStyle &style, QXYSeries *series, QScatterSeries *markerOverlay=nullptr)
Apply every field of style to series.
Definition seriesstyle.cpp:364
SeriesStyle defaultStyleForCycle(int cycleIndex)
Returns a default styled cycle position — the 12-color cycle used when new series are added without a...
Definition seriesstyle.cpp:34
Aggregated rendering parameters for one chart series.
Definition seriesstyle.h:48
QColor effectiveMarkerBorderColor() const
Definition seriesstyle.cpp:47
QFont pointLabelFont
Definition seriesstyle.h:71
QColor effectiveMarkerFillColor() const
Definition seriesstyle.cpp:42
NumberFormatMode pointLabelFormatMode
Definition seriesstyle.h:74
bool showAreaFill
Definition seriesstyle.h:78
QString pointLabelFormat
Definition seriesstyle.h:75
QColor color
Definition seriesstyle.h:50
Qt::PenStyle dash
Definition seriesstyle.h:57
qreal markerBorderWidth
Definition seriesstyle.h:67
QString legendName
Definition seriesstyle.h:52
QColor areaFillColor
Definition seriesstyle.h:79
QColor effectiveAreaFillColor() const
Definition seriesstyle.cpp:57
static SeriesStyle fromJson(const QJsonObject &obj)
Definition seriesstyle.cpp:205
QColor markerBorderColor
Definition seriesstyle.h:66
int pointLabelPrecision
Definition seriesstyle.h:73
qreal markerSize
Definition seriesstyle.h:64
Qt::PenJoinStyle joinStyle
Definition seriesstyle.h:59
bool showLine
Definition seriesstyle.h:55
QColor pointLabelColor
Definition seriesstyle.h:72
MarkerShape shape
Definition seriesstyle.h:63
bool showPointLabels
Definition seriesstyle.h:70
QColor effectivePointLabelColor() const
Definition seriesstyle.cpp:52
qreal opacity
Definition seriesstyle.h:51
QColor markerFillColor
Definition seriesstyle.h:65
qreal lineWidth
Definition seriesstyle.h:56
bool showMarkers
Definition seriesstyle.h:62
QJsonObject toJson() const
Definition seriesstyle.cpp:161
Qt::PenCapStyle capStyle
Definition seriesstyle.h:58