#include <traceanalysislayer.h>
|
| void | styleChanged () |
| | Emitted when any property changes.
|
| |
| void | setDirty () |
| | Emit styleChanged() immediately without tracking or comparing any state. Subclasses determine whether a logical change occurred before calling this. Repeated calls emit repeatedly; the base provides no batching or dirty flag.
|
| |
◆ TraceStyle()
| openswmmvis::trace::TraceStyle::TraceStyle |
( |
QObject * |
p = nullptr | ) |
|
|
inlineexplicit |
- Parameters
-
| [in] | p | Optional QObject owner for the mutable aggregate style. |
- Note
- Initializes independent node/link channels and sets link minimum width to zero; public-field edits require changed() to announce them.
◆ arrows()
| bool openswmmvis::trace::TraceStyle::arrows |
( |
| ) |
const |
|
inline |
- Returns
- Whether downstream link arrows are requested, initially true; sublayer visibility also gates painting.
◆ changed()
| void openswmmvis::trace::TraceStyle::changed |
( |
| ) |
|
|
inline |
◆ fromJson()
| void openswmmvis::trace::TraceStyle::fromJson |
( |
const QJsonObject & |
j | ) |
|
|
overridevirtual |
- Parameters
-
| [in] | j | Empty is a no-op; otherwise replaces channels/labels with decoded values/defaults, clamps taper/contribution, and migrates older node-label flag/id selection. |
- Note
- Always setDirty() after nonempty restore, without strict schema validation/rollback. Unlike setMinContribution(), JSON restoration does not separately normalize NaN.
Reimplemented from OpenSWMM::Render::SublayerStyle.
◆ labels()
| bool openswmmvis::trace::TraceStyle::labels |
( |
| ) |
const |
|
inline |
- Returns
- Node-label appearance enabled flag only; link-label visibility is independent.
◆ minContribution()
| double openswmmvis::trace::TraceStyle::minContribution |
( |
| ) |
const |
|
inline |
Elements carrying less than this fraction of the seed's flow are hidden and unlabelled.
- Returns
- Absolute minimum positive passage-ratio share, initially0.001; seed and unavailable/nonfinite ratios have special contribution rules.
◆ setArrows()
| void openswmmvis::trace::TraceStyle::setArrows |
( |
bool |
v | ) |
|
- Parameters
-
| [in] | v | Whether to request arrow glyphs. |
- Note
- Equality after normalization is a no-op; change calls setDirty(), advancing style revision and notifying attached views.
◆ setLabels()
| void openswmmvis::trace::TraceStyle::setLabels |
( |
bool |
v | ) |
|
- Parameters
-
| [in] | v | Node-label enabled state only, leaving linkLabels unchanged. |
- Note
- Equality after normalization is a no-op; change calls setDirty(), advancing style revision and notifying attached views.
◆ setMinContribution()
| void openswmmvis::trace::TraceStyle::setMinContribution |
( |
double |
v | ) |
|
- Parameters
-
| [in] | v | Passage-ratio fraction clamped0..1; nonfinite input substitutes zero. |
- Note
- Equality after normalization is a no-op; change calls setDirty(), advancing style revision and notifying attached views.
◆ setTaper()
| void openswmmvis::trace::TraceStyle::setTaper |
( |
double |
v | ) |
|
- Parameters
-
| [in] | v | Finite taper fraction clamped0.05..1; caller should exclude NaN because std::clamp has no independent finite guard. |
- Note
- Equality after normalization is a no-op; change calls setDirty(), advancing style revision and notifying attached views.
◆ taper()
| double openswmmvis::trace::TraceStyle::taper |
( |
| ) |
const |
|
inline |
- Returns
- Stored taper fraction, initially one; current trace painting/hit-testing use equal start/end widths and do not apply it.
◆ toJson()
| QJsonObject openswmmvis::trace::TraceStyle::toJson |
( |
| ) |
const |
|
overridevirtual |
- Returns
- Owned schema-two channel/label/taper/arrow/contribution state. Part visibility/opacity is added separately by savedStyle(); no disk IO.
Reimplemented from OpenSWMM::Render::SublayerStyle.
◆ linkColor
| Channel openswmmvis::trace::TraceStyle::linkColor |
◆ linkLabels
◆ linkWidth
| Channel openswmmvis::trace::TraceStyle::linkWidth |
◆ nodeColor
| Channel openswmmvis::trace::TraceStyle::nodeColor |
◆ nodeLabels
◆ nodeSize
| Channel openswmmvis::trace::TraceStyle::nodeSize |
◆ arrows
| bool openswmmvis::trace::TraceStyle::arrows |
|
readwrite |
◆ labels
| bool openswmmvis::trace::TraceStyle::labels |
|
readwrite |
The documentation for this class was generated from the following files: