![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Records a change to a link's interior polyline vertices. More...
#include <mapundostack.h>
Public Member Functions | |
| EditVertexCommand (SWMMModelLayer *layer, int linkIdx, QVector< QPointF > oldInterior, QVector< QPointF > newInterior, double oldLen, double newLen, bool autoLengthApplied, MapCanvas *canvas, QUndoCommand *parent=nullptr) | |
| void | undo () override |
| void | redo () override |
| int | id () const override |
Public Member Functions inherited from MapCommand | |
| MapCommand (const QString &text, MapCanvas *canvas, QUndoCommand *parent=nullptr) | |
Constructs a map command with a human-readable text. | |
| MapCanvas * | canvas () const |
Additional Inherited Members | |
Protected Attributes inherited from MapCommand | |
| MapCanvas * | m_canvas |
Records a change to a link's interior polyline vertices.
Covers drag / insert / delete of interior (non-endpoint) vertices via the same old → new interior snapshot. When auto-length is on at commit time, the conduit length is recomputed from the full polyline and round-tripped through the engine as part of redo / undo.
| EditVertexCommand::EditVertexCommand | ( | SWMMModelLayer * | layer, |
| int | linkIdx, | ||
| QVector< QPointF > | oldInterior, | ||
| QVector< QPointF > | newInterior, | ||
| double | oldLen, | ||
| double | newLen, | ||
| bool | autoLengthApplied, | ||
| MapCanvas * | canvas, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
|
inlineoverride |
|
override |
|
override |