Records the re-fusion (deletion) of an inlet junction.
More...
#include <mapundostack.h>
Records the re-fusion (deletion) of an inlet junction.
Snapshots what FuseVirtualJunctionCommand does (conduit names, split ratio, invert, coordinate) PLUS the usage row, because the fuse drops it. undo() re-splits through swmm_conduit_split_inlet — which recreates a default usage row — then restores the exact snapshot row via swmm_inlet_usage_set.
◆ FuseInletJunctionCommand()
| FuseInletJunctionCommand::FuseInletJunctionCommand |
( |
SWMMModelLayer * |
layer, |
|
|
QString |
nodeName, |
|
|
MapCanvas * |
canvas, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ id()
| int FuseInletJunctionCommand::id |
( |
| ) |
const |
|
inlineoverride |
◆ redo()
| void FuseInletJunctionCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
| void FuseInletJunctionCommand::undo |
( |
| ) |
|
|
override |
◆ valid()
| bool FuseInletJunctionCommand::valid |
( |
| ) |
const |
|
inline |
False when the node is not a two-conduit through inlet junction with a readable usage row; the command must not be pushed.
The documentation for this class was generated from the following files: