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.h
Go to the documentation of this file.
1
19#ifndef OPENSWMMVIS_SECTIONVIEW_SECTIONMODELBUILDERS_H
20#define OPENSWMMVIS_SECTIONVIEW_SECTIONMODELBUILDERS_H
21
22#include <QString>
23
24#include <openswmm/engine/openswmm_engine.h>
25
27
29
36[[nodiscard]] double profileMaxExaggeration() noexcept;
37
40{
41 QString lengthLabel = QStringLiteral("m");
42 bool si = true;
43};
44
57 int linkIdx,
58 const DiagramUnits &units);
59
71 int linkIdx,
72 const DiagramUnits &units);
73
85 int nodeIdx,
86 const DiagramUnits &units,
87 int maxLinks = 8);
88
102 int shape, double geom1, double geom2, double geom3, double geom4,
103 const DiagramUnits &units, int highlightOrdinal = 0);
104
105class XsectSampler; // fwd
106
113[[nodiscard]] SectionDiagramModel buildSamplerPreview(const XsectSampler &sampler,
114 const QString &title,
115 const QString &subtitle,
116 const DiagramUnits &units);
117
118} // namespace openswmmvis::sectionview
119
120#endif // OPENSWMMVIS_SECTIONVIEW_SECTIONMODELBUILDERS_H
Owning handle on one standalone SWMM cross-section.
Definition xsectsampler.h:57
QString lengthLabel
Definition inletdrawingview.cpp:80
MarkerShape shape
Definition markershape.cpp:27
Definition aquifereditordialog.h:41
SectionDiagramModel 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,...
Definition sectionmodelbuilders.cpp:895
SectionDiagramModel 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 ...
Definition sectionmodelbuilders.cpp:1470
SectionDiagramModel buildLinkSection(SWMM_Engine engine, int linkIdx, const DiagramUnits &units)
True-shape cross-section of a link, with dimensions + elevations.
Definition sectionmodelbuilders.cpp:358
SectionDiagramModel buildSamplerPreview(const XsectSampler &sampler, const QString &title, const QString &subtitle, const DiagramUnits &units)
Preview for an already-constructed sampler (tabulated shapes).
Definition sectionmodelbuilders.cpp:1507
double profileMaxExaggeration() noexcept
Definition sectionmodelbuilders.cpp:352
SectionDiagramModel buildLinkProfile(SWMM_Engine engine, int linkIdx, const DiagramUnits &units)
Longitudinal profile of a conduit between its two nodes.
Definition sectionmodelbuilders.cpp:577
void * SWMM_Engine
Definition objectdefaultsapplier.h:19
Renderer-agnostic section/profile diagram model + QPainter painter.
const char * title
Definition snowpackeditordialog.cpp:71
Definition sectionmodelbuilders.h:40
Everything one preview pane draws, in model units.
Definition sectiondiagram.h:274