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
profilesection.h
Go to the documentation of this file.
1
19#ifndef PROFILE_SECTION_H
20#define PROFILE_SECTION_H
21
22#include <QPointF>
23#include <QVector>
24
26{
27
30inline constexpr int kMaxSamples = 2000;
31
36struct Sample
37{
38 double chainage = 0.0;
39 double ground = 0.0;
40 double depthNow = 0.0;
41 double maxDepth = 0.0;
42 int triIdx = -1;
43 bool cellHasSurface = false;
47 QPointF scenePt;
48};
49
59{
60 double chainage = 0.0;
61 double ground = 0.0;
62 QPointF scenePt;
63};
64
69struct Section
70{
71 QVector<Sample> samples;
72 QVector<CellCrossing> crossings;
73 bool hasResults = false;
74};
75
76} // namespace ProfileSection
77
78#endif // PROFILE_SECTION_H
Definition profilesection.h:26
constexpr int kMaxSamples
Definition profilesection.h:30
A point where the traced line crosses a mesh-cell (triangle) edge. Plotted as a dot on the ground lin...
Definition profilesection.h:59
double ground
Definition profilesection.h:61
double chainage
Definition profilesection.h:60
QPointF scenePt
Definition profilesection.h:62
One point along the traced cross-section.
Definition profilesection.h:37
double depthNow
Definition profilesection.h:40
bool cellHasSurface
Definition profilesection.h:43
QPointF scenePt
Definition profilesection.h:47
double maxDepth
Definition profilesection.h:41
int triIdx
Definition profilesection.h:42
double chainage
Definition profilesection.h:38
double ground
Definition profilesection.h:39
The assembled cross-section: ordered samples + a results flag.
Definition profilesection.h:70
QVector< CellCrossing > crossings
Definition profilesection.h:72
bool hasResults
Definition profilesection.h:73
QVector< Sample > samples
Definition profilesection.h:71