18#ifndef OPENSWMM_RENDER_SUBLAYERS_COUPLEDNODESUBLAYER_H
19#define OPENSWMM_RENDER_SUBLAYERS_COUPLEDNODESUBLAYER_H
37 Q_CLASSINFO("group:
color", "Symbology")
43 [[nodiscard]] QColor
color()
const {
return m_color; }
44 [[nodiscard]]
double markerSizePx()
const {
return m_markerSizePx; }
49 [[nodiscard]] QJsonObject
toJson()
const override;
50 void fromJson(
const QJsonObject &j)
override;
55 QColor m_color = QColor(0xff, 0x8c, 0x00, 235);
56 double m_markerSizePx = 5.0;
66 QString
id()
const override {
return m_id; }
67 QString
displayName()
const override {
return tr(
"Coupled Nodes"); }
69 bool isVisible()
const override {
return m_visible; }
71 qreal
opacity()
const override {
return m_opacity; }
88 bool m_visible =
true;
89 qreal m_opacity = 1.0;
Definition couplednodesublayer.h:32
void setMarkerSizePx(double v)
Definition couplednodesublayer.cpp:12
void setColor(const QColor &v)
Definition couplednodesublayer.h:46
QColor color
Definition couplednodesublayer.h:34
QJsonObject toJson() const override
Serialize the style to JSON.
Definition couplednodesublayer.cpp:20
void fromJson(const QJsonObject &j) override
Restore the style from JSON.
Definition couplednodesublayer.cpp:28
double markerSizePx() const
Definition couplednodesublayer.h:44
double markerSizePx
Definition couplednodesublayer.h:35
QColor color() const
Definition couplednodesublayer.h:43
Definition couplednodesublayer.h:60
QString id() const override
Definition couplednodesublayer.h:66
CoupledNodeStyle * coupledStyle() const
Definition couplednodesublayer.h:81
QList< LegendSymbolItem > legendSymbolItems() const override
Returns the legend rows this sublayer contributes.
Definition couplednodesublayer.cpp:61
QSGNode * buildOrUpdateNode(QSGNode *existing, const SublayerContext &) override
Build (or update) the QSG node tree for this sublayer.
Definition couplednodesublayer.cpp:76
bool isVisible() const override
Definition couplednodesublayer.h:69
void setVisible(bool v) override
Definition couplednodesublayer.cpp:46
void setOpacity(qreal o) override
Definition couplednodesublayer.cpp:53
bool isDynamic() const override
Whether this sublayer's output depends on the current animation period.
Definition couplednodesublayer.h:74
SublayerStyle * style() override
Returns the property-bag QObject that owns this sublayer's style knobs.
Definition couplednodesublayer.h:76
Kind kind() const override
Definition couplednodesublayer.h:65
qreal opacity() const override
Definition couplednodesublayer.h:71
QString displayName() const override
Definition couplednodesublayer.h:67
One toggleable visual aspect of a results / model layer.
Definition isublayer.h:87
Kind
Coarse taxonomy of sublayer paint behaviours.
Definition isublayer.h:100
@ MarkerKind
Definition isublayer.h:101
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
Toggleable visual aspect of an output layer.
Definition gisrasterlayer.h:40
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.