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
FuseInletJunctionCommand Class Reference

Records the re-fusion (deletion) of an inlet junction. More...

#include <mapundostack.h>

Inheritance diagram for FuseInletJunctionCommand:
Collaboration diagram for FuseInletJunctionCommand:

Public Member Functions

 FuseInletJunctionCommand (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 inlet junction with a readable usage row; 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 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.

Constructor & Destructor Documentation

◆ FuseInletJunctionCommand()

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

Member Function Documentation

◆ id()

int FuseInletJunctionCommand::id ( ) const
inlineoverride

◆ redo()

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

◆ undo()

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

◆ 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: