SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
FuseVirtualJunctionCommand Class Reference

Records the re-fusion (deletion) of a virtual junction. More...

#include <mapundostack.h>

Inheritance diagram for FuseVirtualJunctionCommand:
Collaboration diagram for FuseVirtualJunctionCommand:

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.
 
MapCanvascanvas () const
 

Additional Inherited Members

- Protected Attributes inherited from MapCommand
MapCanvasm_canvas
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FuseVirtualJunctionCommand()

FuseVirtualJunctionCommand::FuseVirtualJunctionCommand ( SWMMModelLayer layer,
QString  nodeName,
MapCanvas canvas,
QUndoCommand *  parent = nullptr 
)
Here is the call graph for this function:

Member Function Documentation

◆ id()

int FuseVirtualJunctionCommand::id ( ) const
inlineoverride

◆ redo()

void FuseVirtualJunctionCommand::redo ( )
override
Here is the call graph for this function:

◆ undo()

void FuseVirtualJunctionCommand::undo ( )
override
Here is the call graph for this function:

◆ valid()

bool FuseVirtualJunctionCommand::valid ( ) const
inline

False when the node is not a two-conduit through virtual junction (snapshot failed); the command must not be pushed.


The documentation for this class was generated from the following files: