![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Records the re-fusion (deletion) of a virtual junction. More...
#include <mapundostack.h>
Public Member Functions | |
| FuseVirtualJunctionCommand (SWMMModelLayer *layer, QString nodeName, MapCanvas *canvas, QUndoCommand *parent=nullptr) | |
| void | undo () override |
| void | redo () override |
| int | id () const override |
| bool | valid () const |
| False when the node is not a two-conduit through virtual junction (snapshot failed); the command must not be pushed. | |
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 the re-fusion (deletion) of a virtual junction.
The constructor snapshots what a re-split needs: the upstream/ downstream conduit names, the length-ratio split position, the node invert and its map coordinate. undo() re-splits at the snapshot position and restores the invert and coordinate so a grade-break node comes back exactly.
| FuseVirtualJunctionCommand::FuseVirtualJunctionCommand | ( | SWMMModelLayer * | layer, |
| QString | nodeName, | ||
| MapCanvas * | canvas, | ||
| QUndoCommand * | parent = nullptr |
||
| ) |
|
inlineoverride |
|
override |
|
override |
|
inline |
False when the node is not a two-conduit through virtual junction (snapshot failed); the command must not be pushed.