![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include "io/mesh2dresultsexport.h"#include "io/gdaldrivers.h"#include "layers/meshspatialgrid.h"#include "layers/swmm2dresultslayer.h"#include "mesh/meshcellgeom.h"#include "mesh/meshresult.h"#include "mesh/naturalnbinterpolator.h"#include <gdal_priv.h>#include <ogrsf_frmts.h>#include <cpl_conv.h>#include <cpl_error.h>#include <cpl_string.h>#include <nanoflann.hpp>#include <QDateTime>#include <QDir>#include <QFile>#include <QFileInfo>#include <QTextStream>#include <algorithm>#include <array>#include <cmath>#include <limits>#include <memory>Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::io |
Functions | |
| QString | openswmmvis::io::mesh2DVariableKey (Mesh2DVariable variable) |
Lower-case single-word name of variable ("depth", "vmag", …), used for file suffixes, layer names and the sidecar's field column. | |
| QString | openswmmvis::io::mesh2DVariableLabel (Mesh2DVariable variable) |
Human label for variable, e.g. "Water surface elevation". | |
| Mesh2DGridHint | openswmmvis::io::mesh2DGridHint (IMesh2DSource *source, double unitFactor) |
Mesh extent and a default pixel size for source, so a dialog can show the resulting raster's dimensions before anything is written. | |
| bool | openswmmvis::io::exportMesh2DResults (const Mesh2DExportInputs &inputs, const Mesh2DExportOptions &options, const Mesh2DExportProgress &progress, Mesh2DExportReport *report) |
Run the export described by options against inputs. | |
| PtAdaptor adaptor |
| CellAdjacency adj |
| std::vector<double> area |
model units²
| std::vector<int> cell |
| std::vector<mesh::MeshTriangle> cells |
| double cellSize = 1.0 |
| std::vector<double> cx |
| std::vector<double> cy |
area centroid per cell
| std::vector<float> dx |
| std::vector<float> dy |
Green–Gauss only, parallel to cell
| MeshSpatialGrid grid |
| int h = 0 |
| bool hasMax = false |
| int k = 8 |
| std::unique_ptr<Kd2> kd |
| std::vector<double> len |
| std::vector<float> max |
empty unless hasMax
| Mesh2DInterp method = Mesh2DInterp::GreenGauss |
| std::size_t n = 0 |
| std::vector<int> nbr |
| std::vector<double> nx |
| std::vector<double> ny |
| std::vector<int> owner |
containing cell per pixel (-1 = outside)
| double power = 2.0 |
| std::vector<int> start |
size = pixels + 1
| std::vector<std::vector<float> > steps |
one per selected time step
| std::vector<std::array<int, 3> > sub |
sub-triangle fan
| std::vector<int> subStart |
CSR cell → fan slice.
| Mesh2DVariable var = Mesh2DDepth |
| QVector<mesh::MeshVertex> verts |
| std::vector<float> w = 0 |
| double xmin = 0.0 |
| const double* xs = nullptr |
| double ymax = 0.0 |
| const double* ys = nullptr |
| std::vector<double> zMean |
mean bed elevation, model units