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
openswmmvis::transect::InsertStationCommand Class Reference

Insert a single (station, elevation). Redo re-inserts; undo removes it. Stores the inserted index after the first redo. More...

#include <transectundocommands.h>

Inheritance diagram for openswmmvis::transect::InsertStationCommand:
Collaboration diagram for openswmmvis::transect::InsertStationCommand:

Public Member Functions

 InsertStationCommand (TransectProvider *provider, double station, double elevation, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 
int insertedIndex () const noexcept
 

Detailed Description

Insert a single (station, elevation). Redo re-inserts; undo removes it. Stores the inserted index after the first redo.

Constructor & Destructor Documentation

◆ InsertStationCommand()

openswmmvis::transect::InsertStationCommand::InsertStationCommand ( TransectProvider provider,
double  station,
double  elevation,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ insertedIndex()

int openswmmvis::transect::InsertStationCommand::insertedIndex ( ) const
inlinenoexcept

◆ redo()

void openswmmvis::transect::InsertStationCommand::redo ( )
override
Here is the call graph for this function:

◆ undo()

void openswmmvis::transect::InsertStationCommand::undo ( )
override
Here is the call graph for this function:

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