|
MeVisLab Toolbox Reference
|
Base class for a CSOCommand for the undo/redo mechanism. More...
#include <CSOUndoRedoCommands.h>
Public Member Functions | |
| CSOCommand (const CSOListPtr &csoList) | |
| Constructor. | |
| ~CSOCommand () override | |
| Destructor. | |
| virtual int | execute ()=0 |
| Execute method that must be overridden by each derived class. | |
| void | undo () override |
| Calls execute. | |
Public Attributes | |
| std::string | commandName |
| The command as a string (for debugging purposes). | |
Protected Member Functions | |
| bool | checkRedoBehavior () const override |
| Returns whether the undo/redo behavior should be checked; returns 'false' to disable the check. | |
Protected Attributes | |
| CSOList * | _csoList |
| Pointer to the csoList. | |
Base class for a CSOCommand for the undo/redo mechanism.
Definition at line 30 of file CSOUndoRedoCommands.h.
| ml::CSOCommand::CSOCommand | ( | const CSOListPtr & | csoList | ) |
Constructor.
|
override |
Destructor.
|
inlineoverrideprotected |
Returns whether the undo/redo behavior should be checked; returns 'false' to disable the check.
Not every undo step generates a redo step (a previous step might generate two instead).
Definition at line 54 of file CSOUndoRedoCommands.h.
|
pure virtual |
Execute method that must be overridden by each derived class.
Is called for undo/redo mechanism. Returns a notification flag.
Implemented in ml::CSOCmdAddCSO, ml::CSOCmdRemoveCSO, ml::CSOCmdAddCSOGroup, ml::CSOCmdRemoveCSOGroup, ml::CSOCmdAddCSOtoGroup, ml::CSOCmdRemoveCSOfromGroup, ml::CSOCmdAddCSOList, ml::CSOCmdMoveContour, ml::CSOCmdMoveSeedPoint, ml::CSOCmdInsertRemoveSeedPoint, ml::CSOCmdAddCSOSet, ml::CSOCmdRemoveCSOSet, ml::CSOCmdModifySet, and ml::CSOCmdCSOModifyVisualAttributes.
|
override |
Calls execute.
|
protected |
Pointer to the csoList.
Definition at line 57 of file CSOUndoRedoCommands.h.
| std::string ml::CSOCommand::commandName |
The command as a string (for debugging purposes).
Definition at line 48 of file CSOUndoRedoCommands.h.