![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Functions | |
| ProfileSection::Section | buildRasterProfile (const QString &rasterPath, int band, const SpatialReferenceSystem *canvasSRS, const QVector< QPointF > &scenePolyline, double vertFactor=1.0, double stepHint=0.0) |
Resample scenePolyline at fixed arc length and sample the DEM at each point. | |
| ProfileSection::Section RasterProfileSampler::buildRasterProfile | ( | const QString & | rasterPath, |
| int | band, | ||
| const SpatialReferenceSystem * | canvasSRS, | ||
| const QVector< QPointF > & | scenePolyline, | ||
| double | vertFactor = 1.0, |
||
| double | stepHint = 0.0 |
||
| ) |
Resample scenePolyline at fixed arc length and sample the DEM at each point.
| rasterPath | GDAL-readable path of the DEM (GISRasterLayer::filePath()). |
| band | 1-based band index (GISRasterLayer::renderBand()). |
| canvasSRS | CRS the traced polyline is expressed in. May be null — then no reprojection is attempted (polyline is assumed to already be in the raster's CRS). |
| scenePolyline | Traced vertices in scene coords (sx = canvasX, sy = -canvasY) — the convention MapToolMeshProfile emits. |
| vertFactor | Multiplier turning raw DEM Z into model vertical units (TerrainToolbar::verticalToModelFactor()). Ground is reported as rawZ * vertFactor so the profile lines up with node inverts / rims. |
| stepHint | Optional fixed arc-length step (scene units). When ≤ 0 the step is half a DEM pixel, projected into scene units. |