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
openswmmvis::trace::TraceLabels Struct Reference

#include <traceanalysislayer.h>

Collaboration diagram for openswmmvis::trace::TraceLabels:

Public Member Functions

 TraceLabels ()
 Initialize ratio labels with a halo, two decimal digits and percent/ID formatting enabled.
 
QJsonObject toJson () const
 

Static Public Member Functions

static TraceLabels fromJson (const QJsonObject &j)
 

Public Attributes

OpenSWMM::Render::LabelConfig appearance
 
bool showId = true
 
bool percent = true
 
int precision = 2
 

Constructor & Destructor Documentation

◆ 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.

Member Function Documentation

◆ fromJson()

TraceLabels openswmmvis::trace::TraceLabels::fromJson ( const QJsonObject &  j)
static
Parameters
[in]jPermissive 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.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toJson()

QJsonObject openswmmvis::trace::TraceLabels::toJson ( ) const
Returns
Owned appearance/ID/percent/precision JSON without validation, file IO or notification.
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ appearance

OpenSWMM::Render::LabelConfig openswmmvis::trace::TraceLabels::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: