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
SWMMElementSymbol Struct Reference

Rendering style for a class of SWMM network elements. More...

#include <swmmmodellayer.h>

Collaboration diagram for SWMMElementSymbol:

Public Attributes

QColor fillColor = Qt::blue
 
QColor outlineColor = Qt::darkBlue
 
double outlineWidth = 1.0
 
double size = 8.0
 
OpenSWMM::Render::MarkerShape markerShape = OpenSWMM::Render::MarkerShape::Circle
 
bool showLabel = false
 
QFont labelFont
 
QColor labelColor = Qt::black
 
bool showArrows = false
 
double arrowSize = 16.0
 
double arrowWidth = 8.0
 
QColor arrowColor = QColor(34, 34, 34)
 
bool arrowOnlyWhenFlowPos = false
 

Detailed Description

Rendering style for a class of SWMM network elements.

Member Data Documentation

◆ arrowColor

QColor SWMMElementSymbol::arrowColor = QColor(34, 34, 34)

Near-black.

◆ arrowOnlyWhenFlowPos

bool SWMMElementSymbol::arrowOnlyWhenFlowPos = false

◆ arrowSize

double SWMMElementSymbol::arrowSize = 16.0

Arrowhead length in pixels (along the link).

◆ arrowWidth

double SWMMElementSymbol::arrowWidth = 8.0

Arrowhead width in pixels, ACROSS the link — independent of the length so an arrow can be made stubby or needle-thin. The default is deliberately narrower than the length so the head reads as a direction marker rather than a blob. Projects saved before the width became independent carry no arrowWidthPx key and so adopt this default (they previously drew at 1.2 x length).

◆ fillColor

QColor SWMMElementSymbol::fillColor = Qt::blue

◆ labelColor

QColor SWMMElementSymbol::labelColor = Qt::black

◆ labelFont

QFont SWMMElementSymbol::labelFont

◆ markerShape

Point-marker glyph (per-kind defaults seeded in SWMMModelLayer ctor). Ignored for line and polygon categories.

◆ outlineColor

QColor SWMMElementSymbol::outlineColor = Qt::darkBlue

◆ outlineWidth

double SWMMElementSymbol::outlineWidth = 1.0

◆ showArrows

bool SWMMElementSymbol::showArrows = false

Off in the shared default because this struct also backs node and polygon kinds, whose editors would otherwise show a ticked "Show flow arrows". The five LINK kinds are seeded on in the SWMMModelLayer constructor.

◆ showLabel

bool SWMMElementSymbol::showLabel = false

◆ size

double SWMMElementSymbol::size = 8.0

Marker diameter / line width in pixels.


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