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
meshbcsublayer.h File Reference

Boundary-condition indicator sublayer for the 2D mesh. More...

#include "render/isublayer.h"
#include "render/sublayerstyle.h"
#include <QColor>
#include <QJsonObject>
#include <QSet>
#include <QString>
Include dependency graph for meshbcsublayer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OpenSWMM::Render::MeshBcStyle
 
class  OpenSWMM::Render::MeshBcSublayer
 

Namespaces

namespace  OpenSWMM
 
namespace  OpenSWMM::Render
 

Detailed Description

Boundary-condition indicator sublayer for the 2D mesh.

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
    Static — isDynamic() == false. The BC ring depends on the mesh
    topology and the authored [2D_BOUNDARY_CONDITIONS] rows, not on
    the animation period.

    Carved out of MeshEdgeStyle (which used to carry colorByBC + the
    per-type colours/widths) so BC indicators are a first-class
    sublayer: their own layer-tree row with visibility/opacity, their
    own styling tab, and — new — per-BC-type visibility. The
    sublayer's own isVisible() replaces the old colorByBC master
    toggle; legacy styles migrate in
    SWMM2DMeshLayer::onSublayersJsonLoaded.

    Seven explicit per-type properties rather than a
    ClassificationScheme: the scheme's modes are numeric, and forcing
    a 7-value enum through manual breaks would put fake numeric edges
    in legend labels. The enum is frozen at seven
    (mesh::MeshBCTypes::Type), so there is no open-ended growth.