18#ifndef OPENSWMM_RENDER_SUBLAYERS_MESHEDGESUBLAYER_H
19#define OPENSWMM_RENDER_SUBLAYERS_MESHEDGESUBLAYER_H
55 Q_CLASSINFO("group:
color", "Symbology")
59 Q_CLASSINFO("group:
slopeBreak", "Slope emphasis")
61 Q_CLASSINFO("group:
wideColor", "Slope emphasis")
67 [[nodiscard]] QColor
color()
const {
return m_color; }
68 [[nodiscard]]
double lineWidthPx()
const {
return m_lineWidthPx; }
69 [[nodiscard]] Qt::PenStyle
dashPattern()
const {
return m_dashPattern; }
71 [[nodiscard]]
double slopeBreak()
const {
return m_slopeBreak; }
72 [[nodiscard]]
double wideWidthPx()
const {
return m_wideWidthPx; }
73 [[nodiscard]] QColor
wideColor()
const {
return m_wideColor; }
89 [[nodiscard]] QJsonObject
toJson()
const override;
90 void fromJson(
const QJsonObject &j)
override;
95 void seedSchemeFromLegacy();
99 QColor m_color = QColor(0, 0, 0, 130);
100 double m_lineWidthPx = 0.35;
101 Qt::PenStyle m_dashPattern = Qt::SolidLine;
102 bool m_useSlopeDrivenWidth =
true;
103 double m_slopeBreak = 0.35;
104 double m_wideWidthPx = 0.90;
105 QColor m_wideColor = QColor(0, 0, 0, 210);
116 QString
id()
const override {
return m_id; }
121 qreal
opacity()
const override {
return m_opacity; }
135 bool m_visible =
true;
136 qreal m_opacity = 1.0;
Shared classification model: mode + binner + ramp + range + per-class overrides, with a revision stam...
Definition classificationscheme.h:61
One toggleable visual aspect of a results / model layer.
Definition isublayer.h:87
Kind
Coarse taxonomy of sublayer paint behaviours.
Definition isublayer.h:100
@ LineKind
Definition isublayer.h:102
Definition meshedgesublayer.h:34
double lineWidthPx
Definition meshedgesublayer.h:37
QJsonObject toJson() const override
Serialize the style to JSON.
Definition meshedgesublayer.cpp:75
double slopeBreak() const
Definition meshedgesublayer.h:71
void setScheme(const ClassificationScheme &s)
Definition meshedgesublayer.cpp:44
void setWideWidthPx(double v)
Definition meshedgesublayer.cpp:67
void setWideColor(const QColor &v)
Definition meshedgesublayer.h:81
void setDashPattern(Qt::PenStyle v)
Definition meshedgesublayer.h:77
void setLineWidthPx(double v)
Definition meshedgesublayer.cpp:51
double wideWidthPx
Definition meshedgesublayer.h:41
double lineWidthPx() const
Definition meshedgesublayer.h:68
QColor wideColor() const
Definition meshedgesublayer.h:73
Qt::PenStyle dashPattern
Definition meshedgesublayer.h:38
QColor wideColor
Definition meshedgesublayer.h:42
void setSlopeBreak(double v)
Definition meshedgesublayer.cpp:59
void fromJson(const QJsonObject &j) override
Restore the style from JSON.
Definition meshedgesublayer.cpp:89
void setColor(const QColor &v)
Definition meshedgesublayer.h:75
bool useSlopeDrivenWidth() const
Definition meshedgesublayer.h:70
double slopeBreak
Definition meshedgesublayer.h:40
QColor color
Definition meshedgesublayer.h:36
OpenSWMM::Render::ClassificationScheme classification
Definition meshedgesublayer.h:53
double wideWidthPx() const
Definition meshedgesublayer.h:72
Qt::PenStyle dashPattern() const
Definition meshedgesublayer.h:69
void setUseSlopeDrivenWidth(bool v)
Definition meshedgesublayer.h:78
const ClassificationScheme & scheme() const
Definition meshedgesublayer.h:86
bool useSlopeDrivenWidth
Definition meshedgesublayer.h:39
Definition meshedgesublayer.h:110
QSGNode * buildOrUpdateNode(QSGNode *existing, const SublayerContext &) override
Build (or update) the QSG node tree for this sublayer.
Definition meshedgesublayer.cpp:159
SublayerStyle * style() override
Returns the property-bag QObject that owns this sublayer's style knobs.
Definition meshedgesublayer.h:126
void setVisible(bool v) override
Definition meshedgesublayer.cpp:127
bool isVisible() const override
Definition meshedgesublayer.h:119
MeshEdgeStyle * edgeStyle() const
Definition meshedgesublayer.h:131
QList< LegendSymbolItem > legendSymbolItems() const override
Returns the legend rows this sublayer contributes.
Definition meshedgesublayer.cpp:142
void setOpacity(qreal o) override
Definition meshedgesublayer.cpp:134
QString displayName() const override
Definition meshedgesublayer.h:117
Kind kind() const override
Definition meshedgesublayer.h:115
qreal opacity() const override
Definition meshedgesublayer.h:121
QString id() const override
Definition meshedgesublayer.h:116
bool isDynamic() const override
Whether this sublayer's output depends on the current animation period.
Definition meshedgesublayer.h:124
Base class for per-sublayer style property bags.
Definition sublayerstyle.h:56
void styleChanged()
Emitted when any property changes.
void setDirty()
Definition sublayerstyle.h:97
Slice US.1 (UNIFIED_STYLING_AND_UI_CONSISTENCY_PLAN.md S1) — the shared classification value type emb...
double s
Scene px per model length unit.
Definition inletdrawingview.cpp:82
Toggleable visual aspect of an output layer.
Definition gisrasterlayer.h:40
Definition contourchain.h:23
QVector< int > v
pool vertex indices
Definition pslgminsize.cpp:159
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
Per-frame parameters handed to ISublayer::buildOrUpdateNode().
Definition isublayer.h:73
QObject base class for per-sublayer style property bags.