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::MovePointCommand Class Reference

Change both time and value at an existing index. The provider refuses if the new time would break strict-ascending order. More...

#include <timeseriesundocommands.h>

Inheritance diagram for openswmmvis::timeseries::MovePointCommand:
Collaboration diagram for openswmmvis::timeseries::MovePointCommand:

Public Member Functions

 MovePointCommand (TimeseriesProvider *provider, int index, QDateTime newTime, double newValue, QUndoCommand *parent=nullptr)
 
void undo () override
 
void redo () override
 

Detailed Description

Change both time and value at an existing index. The provider refuses if the new time would break strict-ascending order.

Constructor & Destructor Documentation

◆ MovePointCommand()

openswmmvis::timeseries::MovePointCommand::MovePointCommand ( TimeseriesProvider provider,
int  index,
QDateTime  newTime,
double  newValue,
QUndoCommand *  parent = nullptr 
)

Member Function Documentation

◆ redo()

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

◆ undo()

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

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