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
seriesstyle.cpp File Reference
#include "plot/seriesstyle.h"
#include <QImage>
#include <QPainter>
#include <QPainterPath>
#include <QPixmap>
#include <QScatterSeries>
#include <QXYSeries>
Include dependency graph for seriesstyle.cpp:

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::plot
 

Functions

SeriesStyle openswmmvis::plot::defaultStyleForCycle (int cycleIndex)
 Returns a default styled cycle position — the 12-color cycle used when new series are added without an explicit style. Wraps modulo 12.
 
QString openswmmvis::plot::markerShapeToString (MarkerShape s)
 String key for MarkerShape ↔ JSON.
 
MarkerShape openswmmvis::plot::markerShapeFromString (const QString &s)
 
QString openswmmvis::plot::penStyleToString (Qt::PenStyle s)
 String key for Qt::PenStyle (Solid / Dash / Dot / DashDot / DashDotDot).
 
Qt::PenStyle openswmmvis::plot::penStyleFromString (const QString &s)
 
QString openswmmvis::plot::penCapStyleToString (Qt::PenCapStyle s)
 String keys for Qt::PenCapStyle and Qt::PenJoinStyle (JSON round-trip).
 
Qt::PenCapStyle openswmmvis::plot::penCapStyleFromString (const QString &s)
 
QString openswmmvis::plot::penJoinStyleToString (Qt::PenJoinStyle s)
 
Qt::PenJoinStyle openswmmvis::plot::penJoinStyleFromString (const QString &s)
 
QPen openswmmvis::plot::penForStyle (const SeriesStyle &style)
 Build a QPen from the line-related fields of style. Width / cap / join / dash all wired up; colour with alpha from opacity.
 
void openswmmvis::plot::applySeriesStyle (const SeriesStyle &style, QXYSeries *series, QScatterSeries *markerOverlay=nullptr)
 Apply every field of style to series.
 

Detailed Description

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