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::Channel Struct Reference

#include <traceanalysislayer.h>

Collaboration diagram for openswmmvis::trace::Channel:

Public Member Functions

 Channel ()
 Initialize an independent visual channel with a continuous colour scheme and ratio/linear/automatic defaults.
 
QJsonObject toJson () const
 

Static Public Member Functions

static Channel fromJson (const QJsonObject &j)
 

Public Attributes

QString field = QStringLiteral("ratio")
 
QString transform = QStringLiteral("linear")
 
bool automatic = true
 
double minimum = 0
 
double maximum = 1
 
double minimumSize = 2
 
double maximumSize = 14
 
bool proportional = true
 
OpenSWMM::Render::ClassificationScheme colors
 

Constructor & Destructor Documentation

◆ Channel()

openswmmvis::trace::Channel::Channel ( )

Initialize an independent visual channel with a continuous colour scheme and ratio/linear/automatic defaults.

Note
Raw public fields are unvalidated; sizes are logical pixels and numeric ranges use the selected field's units.
Here is the call graph for this function:

Member Function Documentation

◆ fromJson()

Channel openswmmvis::trace::Channel::fromJson ( const QJsonObject &  j)
static
Parameters
[in]jPermissive channel object; missing fields use defaults, sizes clamp to minimum0..80 and maximum0.1..80 pixels without ordering them.
Returns
Owned channel. Present colors uses ClassificationScheme decoding; legacy classes/ramp/range fields migrate when colors is absent. Field/transform names and numeric range order are not validated.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toJson()

QJsonObject openswmmvis::trace::Channel::toJson ( ) const
Returns
Owned complete channel/range/size/palette 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

◆ automatic

bool openswmmvis::trace::Channel::automatic = true

◆ colors

OpenSWMM::Render::ClassificationScheme openswmmvis::trace::Channel::colors

◆ field

QString openswmmvis::trace::Channel::field = QStringLiteral("ratio")

◆ maximum

double openswmmvis::trace::Channel::maximum = 1

◆ maximumSize

double openswmmvis::trace::Channel::maximumSize = 14

◆ minimum

double openswmmvis::trace::Channel::minimum = 0

◆ minimumSize

double openswmmvis::trace::Channel::minimumSize = 2

◆ proportional

bool openswmmvis::trace::Channel::proportional = true

◆ transform

QString openswmmvis::trace::Channel::transform = QStringLiteral("linear")

The documentation for this struct was generated from the following files: