![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <terrainsizefield.h>
Public Attributes | |
| double | tolerance = 0.0 |
| Vertical tolerance in the DEM's units. <= 0 = no field. | |
| int | maxLevel = 10 |
| Largest block tested: 2^maxLevel pixels (1024). | |
| int | outLevel = 2 |
| qint64 | maxBandBytes = 256ll * 1024 * 1024 |
| a full-width band of 2^maxLevel rows would exceed it. | |
| std::function< void(const float *, int, int, int)> | rowSink |
| bool | rowsOnly = false |
| Stream rows without allocating or computing a size grid. | |
| int | decimation = 1 |
| int mesh::TerrainSizeOptions::decimation = 1 |
rowsOnly only: stream a grid d times coarser (block-averaged, served from overviews when present), for feature detection that does not need full resolution. windowPixelToGeo() maps the coarse grid.
| qint64 mesh::TerrainSizeOptions::maxBandBytes = 256ll * 1024 * 1024 |
a full-width band of 2^maxLevel rows would exceed it.
Streaming budget; lowers maxLevel when
| int mesh::TerrainSizeOptions::maxLevel = 10 |
Largest block tested: 2^maxLevel pixels (1024).
| int mesh::TerrainSizeOptions::outLevel = 2 |
Output cell = 2^outLevel pixels. Callers pick it near the size-field pitch so the grid stays small.
| std::function<void(const float *, int, int, int)> mesh::TerrainSizeOptions::rowSink |
Optional: receives every row of the window in order, after NoData → NaN, as (row, rowIndex, cols, rows). The terrain break-line extractor (MESH_OVERHAUL_PHASE6B_FEATURE_CAPTURE_2026-09-30.md §2.1) rides this pass so the DEM is read once.
| bool mesh::TerrainSizeOptions::rowsOnly = false |
Stream rows without allocating or computing a size grid.
| double mesh::TerrainSizeOptions::tolerance = 0.0 |
Vertical tolerance in the DEM's units. <= 0 = no field.