Records a conduit split that inserts a plain (non-virtual) junction.
More...
#include <mapundostack.h>
Records a conduit split that inserts a plain (non-virtual) junction.
redo() calls SWMMModelLayer::applyInsertJunctionSplit (engine swmm_conduit_split with make_virtual = 0); undo() calls applyFuseJunctionSplit, which flags the node virtual just long enough to reuse the engine's exact fuse inverse and rolls the flag back if the fuse is refused. Like the virtual-junction pair, a split→fuse round-trip restores the model byte-identically, so no snapshot machinery is needed.
◆ InsertJunctionSplitCommand()
| InsertJunctionSplitCommand::InsertJunctionSplitCommand |
( |
SWMMModelLayer * |
layer, |
|
|
QString |
linkName, |
|
|
double |
t, |
|
|
QString |
nodeName, |
|
|
QString |
newLinkName, |
|
|
MapCanvas * |
canvas, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ id()
| int InsertJunctionSplitCommand::id |
( |
| ) |
const |
|
inlineoverride |
◆ redo()
| void InsertJunctionSplitCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
| void InsertJunctionSplitCommand::undo |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: