![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <transectprovider.h>
Signals | |
| void | nameChanged (QString prev, QString now) |
| void | commentsChanged () |
| void | roughnessChanged () |
| void | bankStationsChanged () |
| void | encroachmentStationsChanged () |
| void | modifiersChanged () |
| void | pointsChanged (int firstIndex, int count) |
| void | pointsInserted (int at, int count) |
| void | pointsRemoved (int at, int count) |
| void | mutationRejected (QString reason) |
Public Member Functions | |
| TransectProvider (QString name, QObject *parent=nullptr) | |
| ~TransectProvider () override | |
| QString | name () const noexcept |
| QString | comments () const noexcept |
| double | nLeftBank () const noexcept |
| double | nRightBank () const noexcept |
| double | nChannel () const noexcept |
| double | xLeftBank () const noexcept |
| double | xRightBank () const noexcept |
| double | xLeftEncroachment () const noexcept |
| double | xRightEncroachment () const noexcept |
| double | stationMultiplier () const noexcept |
| double | elevationOffset () const noexcept |
| double | meanderFactor () const noexcept |
| int | pointCount () const noexcept |
| const TransectPoint & | pointAt (int i) const |
| const QVector< TransectPoint > & | points () const noexcept |
| QVector< QPair< double, double > > | allPoints () const |
| void | setName (QString newName) |
| void | setComments (QString newComments) |
| void | setRoughness (double nLeft, double nRight, double nChannel) |
| void | setBankStations (double xLeft, double xRight) |
| void | setEncroachmentStations (double xLeft, double xRight) |
| void | setModifiers (double xFactor, double yFactor, double lengthFactor) |
| bool | setAllPoints (QVector< TransectPoint > newPoints, QString *reasonOut=nullptr) |
| Replace the entire station list. Validates strict-monotone stations before applying. Atomic. | |
| bool | setElevationAt (int i, double newElev, QString *reasonOut=nullptr) |
Edit elevation at index i; station stays put. | |
| bool | setPointAt (int i, double newStation, double newElev, QString *reasonOut=nullptr) |
Edit both station and elevation at index i. Validates that the new station still slots strictly between neighbours. | |
| bool | setPointLive (int i, double newStation, double newElev, bool *clamped=nullptr) |
Live drag variant: skips strict monotonicity by clamping the new station to lie in (prev + eps, next - eps). When the value was clamped, clamped is set true. | |
| int | insertPoint (double station, double elev, QString *reasonOut=nullptr) |
| Insert one point. Returns the new index on success, -1 on collision / out-of-order. | |
| void | removePointsAt (QVector< int > indices) |
| Remove points by index. Indices are deduplicated + sorted descending internally so the loop is safe. | |
|
explicit |
|
overridedefault |
|
signal |
|
inlinenoexcept |
|
signal |
|
inlinenoexcept |
|
signal |
| int openswmmvis::transect::TransectProvider::insertPoint | ( | double | station, |
| double | elev, | ||
| QString * | reasonOut = nullptr |
||
| ) |
Insert one point. Returns the new index on success, -1 on collision / out-of-order.
|
inlinenoexcept |
|
signal |
|
signal |
|
inlinenoexcept |
|
signal |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
signal |
|
signal |
|
signal |
| void openswmmvis::transect::TransectProvider::removePointsAt | ( | QVector< int > | indices | ) |
Remove points by index. Indices are deduplicated + sorted descending internally so the loop is safe.
|
signal |
| bool openswmmvis::transect::TransectProvider::setAllPoints | ( | QVector< TransectPoint > | newPoints, |
| QString * | reasonOut = nullptr |
||
| ) |
Replace the entire station list. Validates strict-monotone stations before applying. Atomic.
| void openswmmvis::transect::TransectProvider::setComments | ( | QString | newComments | ) |
| bool openswmmvis::transect::TransectProvider::setElevationAt | ( | int | i, |
| double | newElev, | ||
| QString * | reasonOut = nullptr |
||
| ) |
Edit elevation at index i; station stays put.
| void openswmmvis::transect::TransectProvider::setEncroachmentStations | ( | double | xLeft, |
| double | xRight | ||
| ) |
| void openswmmvis::transect::TransectProvider::setModifiers | ( | double | xFactor, |
| double | yFactor, | ||
| double | lengthFactor | ||
| ) |
| void openswmmvis::transect::TransectProvider::setName | ( | QString | newName | ) |
| bool openswmmvis::transect::TransectProvider::setPointAt | ( | int | i, |
| double | newStation, | ||
| double | newElev, | ||
| QString * | reasonOut = nullptr |
||
| ) |
Edit both station and elevation at index i. Validates that the new station still slots strictly between neighbours.
| bool openswmmvis::transect::TransectProvider::setPointLive | ( | int | i, |
| double | newStation, | ||
| double | newElev, | ||
| bool * | clamped = nullptr |
||
| ) |
Live drag variant: skips strict monotonicity by clamping the new station to lie in (prev + eps, next - eps). When the value was clamped, clamped is set true.
| void openswmmvis::transect::TransectProvider::setRoughness | ( | double | nLeft, |
| double | nRight, | ||
| double | nChannel | ||
| ) |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |