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
meshbcrenderingprefs.h File Reference
#include <QColor>
#include <QObject>
Include dependency graph for meshbcrenderingprefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MeshBcRenderingPrefs
 

Detailed Description

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Q_PROPERTY-wrapped view onto PreferencesManager's 2D-mesh boundary-condition edge defaults. Drives the Preferences dialog's Rendering page via QPropertyModel — getters call PreferencesManager::meshBcColor / meshBcWidthPx, setters call the matching setters, so every edit routes back through the singleton and fires preferenceChanged exactly like a hand-coded picker would.

These are DEFAULTS ONLY. SWMM2DMeshLayer seeds a freshly-created mesh's Boundary Conditions sublayer (MeshBcStyle) from them — colorByType seeds the sublayer's initial visibility; a project load, a .swmm-style.json import, or any per-layer edit overwrites the seeded values and is persisted with the layer. Changing a preference therefore affects meshes opened afterwards, not meshes already styled — the same contract nodePen()/linkPen() have.

Wall has a colour but no width: Wall edges ARE the interior wireframe and are drawn at the edge style's own lineWidthPx.