#include <traceanalysislayer.h>
|
| | TraceLabels () |
| | Initialize ratio labels with a halo, two decimal digits and percent/ID formatting enabled.
|
| |
| QJsonObject | toJson () const |
| |
◆ TraceLabels()
| openswmmvis::trace::TraceLabels::TraceLabels |
( |
| ) |
|
Initialize ratio labels with a halo, two decimal digits and percent/ID formatting enabled.
- Note
- Overall label visibility follows LabelConfig defaults; construction does not request painting.
◆ fromJson()
| TraceLabels openswmmvis::trace::TraceLabels::fromJson |
( |
const QJsonObject & |
j | ) |
|
|
static |
- Parameters
-
| [in] | j | Permissive label object; appearance uses LabelConfig decoder, missing flags true and precision two. |
- Returns
- Owned label policy with precision clamped0..8. No source lookup/signals or file IO.
◆ toJson()
| QJsonObject openswmmvis::trace::TraceLabels::toJson |
( |
| ) |
const |
- Returns
- Owned appearance/ID/percent/precision JSON without validation, file IO or notification.
◆ appearance
◆ percent
| bool openswmmvis::trace::TraceLabels::percent = true |
◆ precision
| int openswmmvis::trace::TraceLabels::precision = 2 |
◆ showId
| bool openswmmvis::trace::TraceLabels::showId = true |
The documentation for this struct was generated from the following files: