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
mesh::TerrainSizeOptions Struct Reference

#include <terrainsizefield.h>

Collaboration diagram for mesh::TerrainSizeOptions:

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
 

Member Data Documentation

◆ decimation

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.

◆ maxBandBytes

qint64 mesh::TerrainSizeOptions::maxBandBytes = 256ll * 1024 * 1024

a full-width band of 2^maxLevel rows would exceed it.

Streaming budget; lowers maxLevel when

◆ maxLevel

int mesh::TerrainSizeOptions::maxLevel = 10

Largest block tested: 2^maxLevel pixels (1024).

◆ outLevel

int mesh::TerrainSizeOptions::outLevel = 2

Output cell = 2^outLevel pixels. Callers pick it near the size-field pitch so the grid stays small.

◆ rowSink

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.

◆ rowsOnly

bool mesh::TerrainSizeOptions::rowsOnly = false

Stream rows without allocating or computing a size grid.

◆ tolerance

double mesh::TerrainSizeOptions::tolerance = 0.0

Vertical tolerance in the DEM's units. <= 0 = no field.


The documentation for this struct was generated from the following file: