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::timeseries::InsertPointCommand Class Reference

Insert one point. Stores the time so undo can locate the inserted row. More...

#include <timeseriesundocommands.h>

Inheritance diagram for openswmmvis::timeseries::InsertPointCommand:
Collaboration diagram for openswmmvis::timeseries::InsertPointCommand:

Public Member Functions

 InsertPointCommand (TimeseriesProvider *provider, QDateTime time, double value, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 
int insertedIndex () const noexcept
 Index of the inserted point after redo. -1 until first redo, or if redo was rejected.
 

Detailed Description

Insert one point. Stores the time so undo can locate the inserted row.

Constructor & Destructor Documentation

◆ InsertPointCommand()

openswmmvis::timeseries::InsertPointCommand::InsertPointCommand ( TimeseriesProvider provider,
QDateTime  time,
double  value,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ insertedIndex()

int openswmmvis::timeseries::InsertPointCommand::insertedIndex ( ) const
inlinenoexcept

Index of the inserted point after redo. -1 until first redo, or if redo was rejected.

◆ redo()

void openswmmvis::timeseries::InsertPointCommand::redo ( )
override
Here is the call graph for this function:

◆ undo()

void openswmmvis::timeseries::InsertPointCommand::undo ( )
override
Here is the call graph for this function:

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