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

Records a STREET-conduit split that inserts a configured inlet junction (swmm_conduit_split_inlet). More...

#include <mapundostack.h>

Inheritance diagram for InsertInletJunctionCommand:
Collaboration diagram for InsertInletJunctionCommand:

Public Member Functions

 InsertInletJunctionCommand (SWMMModelLayer *layer, QString linkName, double t, QString nodeName, QString newLinkName, QString inletId, QString captureNode, MapCanvas *canvas, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 
int id () const override
 
- 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 a STREET-conduit split that inserts a configured inlet junction (swmm_conduit_split_inlet).

Like InsertVirtualJunctionCommand, undo is the engine's exact inverse (swmm_inlet_junction_fuse), which removes the usage row and re-fuses the pair — so no snapshot machinery is needed.

Constructor & Destructor Documentation

◆ InsertInletJunctionCommand()

InsertInletJunctionCommand::InsertInletJunctionCommand ( SWMMModelLayer layer,
QString  linkName,
double  t,
QString  nodeName,
QString  newLinkName,
QString  inletId,
QString  captureNode,
MapCanvas canvas,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ id()

int InsertInletJunctionCommand::id ( ) const
inlineoverride

◆ redo()

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

◆ undo()

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

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