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.cpp File Reference

Q_PROPERTY facade over PreferencesManager's 2D-mesh BC edge defaults. See the header for the defaults-only contract. More...

Include dependency graph for meshbcrenderingprefs.cpp:

Macros

#define OSV_BC_COLOR(Getter, Setter, Type)
 
#define OSV_BC_WIDTH(Getter, Setter, Type)
 

Detailed Description

Q_PROPERTY facade over PreferencesManager's 2D-mesh BC edge defaults. See the header for the defaults-only contract.

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

Macro Definition Documentation

◆ OSV_BC_COLOR

#define OSV_BC_COLOR (   Getter,
  Setter,
  Type 
)
Value:
QColor MeshBcRenderingPrefs::Getter() const \
void MeshBcRenderingPrefs::Setter(const QColor &c) \
{ \
if (c == Getter()) return; \
PreferencesManager::instance()->setMeshBcColor(Type, c); \
emit changed(); \
}
Definition preferencesmanager.h:34
static PreferencesManager * instance()
Definition preferencesmanager.cpp:147
QColor meshBcColor(int type) const
Definition preferencesmanager.cpp:1014

◆ OSV_BC_WIDTH

#define OSV_BC_WIDTH (   Getter,
  Setter,
  Type 
)
Value:
double MeshBcRenderingPrefs::Getter() const \
void MeshBcRenderingPrefs::Setter(double px) \
{ \
if (qFuzzyCompare(px + 1.0, Getter() + 1.0)) return; \
PreferencesManager::instance()->setMeshBcWidthPx(Type, px); \
emit changed(); \
}
double meshBcWidthPx(int type) const
Definition preferencesmanager.cpp:1041