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
MeshProfileSampler Namespace Reference

Typedefs

using Sample = ProfileSection::Sample
 
using CellCrossing = ProfileSection::CellCrossing
 
using MeshProfile = ProfileSection::Section
 

Functions

MeshProfile buildMeshProfile (SWMM2DMeshLayer *mesh, SWMM2DResultsLayer *results, const QVector< QPointF > &scenePolyline, double stepHint=0.0)
 Resample scenePolyline at fixed arc length and sample ground / depth / max-depth along it.
 

Variables

constexpr int kMaxSamples = ProfileSection::kMaxSamples
 

Typedef Documentation

◆ CellCrossing

◆ MeshProfile

◆ Sample

Function Documentation

◆ buildMeshProfile()

MeshProfile MeshProfileSampler::buildMeshProfile ( SWMM2DMeshLayer mesh,
SWMM2DResultsLayer results,
const QVector< QPointF > &  scenePolyline,
double  stepHint = 0.0 
)

Resample scenePolyline at fixed arc length and sample ground / depth / max-depth along it.

Parameters
meshThe mesh layer (ground elevation via sampleZAt). Required.
resultsThe results layer (depth + envelope). May be null — then only ground is populated and hasResults is false.
scenePolylineTraced vertices in scene coords (sx = mapX, sy = -mapY).
stepHintOptional fixed arc-length step (scene units). When ≤ 0 a characteristic cell size is derived from the mesh extent.
Here is the call graph for this function:

Variable Documentation

◆ kMaxSamples

constexpr int MeshProfileSampler::kMaxSamples = ProfileSection::kMaxSamples
inlineconstexpr

Hard cap on sample count so a very long polyline can't blow up the per-frame resample / per-cell envelope work.