Reverses a link's direction — upstream node becomes downstream.
More...
#include <mapundostack.h>
Reverses a link's direction — upstream node becomes downstream.
Delegates to SWMMModelLayer::applyLinkFlip(), which is self-inverse, so redo() and undo() are the same call and no before/after snapshot is needed.
◆ FlipLinkCommand()
| FlipLinkCommand::FlipLinkCommand |
( |
SWMMModelLayer * |
layer, |
|
|
int |
linkIdx, |
|
|
MapCanvas * |
canvas, |
|
|
QUndoCommand * |
parent = nullptr |
|
) |
| |
◆ id()
| int FlipLinkCommand::id |
( |
| ) |
const |
|
inlineoverride |
◆ redo()
| void FlipLinkCommand::redo |
( |
| ) |
|
|
override |
◆ undo()
| void FlipLinkCommand::undo |
( |
| ) |
|
|
override |
The documentation for this class was generated from the following files: