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
sectionmodelbuilders.cpp File Reference
#include "ui/sectionview/sectionmodelbuilders.h"
#include "ui/properties/xsectshapegeom.h"
#include "ui/sectionview/xsectsampler.h"
#include <openswmm/engine/openswmm_infrastructure.h>
#include <openswmm/engine/openswmm_links.h>
#include <openswmm/engine/openswmm_nodes.h>
#include <openswmm/engine/openswmm_spatial.h>
#include <openswmm/engine/openswmm_tables.h>
#include <QCoreApplication>
#include <QStringList>
#include <QVector>
#include <QtMath>
#include <algorithm>
#include <cmath>
Include dependency graph for sectionmodelbuilders.cpp:

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::sectionview
 

Functions

double openswmmvis::sectionview::profileMaxExaggeration () noexcept
 
SectionDiagramModel openswmmvis::sectionview::buildLinkSection (SWMM_Engine engine, int linkIdx, const DiagramUnits &units)
 True-shape cross-section of a link, with dimensions + elevations.
 
SectionDiagramModel openswmmvis::sectionview::buildLinkProfile (SWMM_Engine engine, int linkIdx, const DiagramUnits &units)
 Longitudinal profile of a conduit between its two nodes.
 
SectionDiagramModel openswmmvis::sectionview::buildNodeProfile (SWMM_Engine engine, int nodeIdx, const DiagramUnits &units, int maxLinks=8)
 Node profile: structure, rim, invert, and every connecting link drawn at its own invert offset, plus a plan-view inset of link headings.
 
SectionDiagramModel openswmmvis::sectionview::buildXsectEditorPreview (int shape, double geom1, double geom2, double geom3, double geom4, const DiagramUnits &units, int highlightOrdinal=0)
 Live preview for the cross-section editor, built from uncommitted dialog values rather than from the engine's stored link.
 
SectionDiagramModel openswmmvis::sectionview::buildSamplerPreview (const XsectSampler &sampler, const QString &title, const QString &subtitle, const DiagramUnits &units)
 Preview for an already-constructed sampler (tabulated shapes).
 

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

Variable Documentation

◆ corbel

bool corbel = false

Neck the top in, brick-manhole style.

◆ cover

bool cover = false

Frame & cover sat on the rim.

◆ flapGate

bool flapGate = false

◆ halfWidthMult

double halfWidthMult = 1.0

◆ hasHeading

bool hasHeading = false

◆ headingDeg

double headingDeg = 0.0

◆ height

double height = 0.0

Full depth of the section (0 → thin stub).

◆ inbound

bool inbound = true

True when this node is the link's to node.

◆ invert

double invert = 0.0

Absolute invert elevation at this node.

◆ name

QString name

◆ role

DiagramRole role = DiagramRole::Structure

◆ subtype

int subtype = -1

Orifice SIDE/BOTTOM, weir type, or outlet rating type; -1 when the link kind has no sub-type.

◆ type

int type = SWMM_LINK_CONDUIT

◆ wallMult

double wallMult = 1.0