MeVisLabToolboxReference
|
Base class for a CSOCommand for the undo/redo mechanism. More...
#include <CSOUndoRedoCommands.h>
Public Member Functions | |
CSOCommand () | |
Constructor. | |
virtual | ~CSOCommand () |
Destructor. | |
virtual int | execute ()=0 |
Execute method, must be overridden by each derived class. | |
int | getGroupId () const |
Returns the group id of this command. | |
void | setGroupId (int groupId) |
Sets the group id of this command. | |
Public Attributes | |
std::string | commandName |
The command as a string (for debugging purposes). |
Base class for a CSOCommand for the undo/redo mechanism.
Definition at line 23 of file CSOUndoRedoCommands.h.
ml::CSOCommand::CSOCommand | ( | ) |
Constructor.
virtual ml::CSOCommand::~CSOCommand | ( | ) | [virtual] |
Destructor.
virtual int ml::CSOCommand::execute | ( | ) | [pure virtual] |
Execute method, 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, and ml::CSOCmdModifySet.
int ml::CSOCommand::getGroupId | ( | ) | const [inline] |
Returns the group id of this command.
Definition at line 41 of file CSOUndoRedoCommands.h.
void ml::CSOCommand::setGroupId | ( | int | groupId | ) | [inline] |
Sets the group id of this command.
Definition at line 43 of file CSOUndoRedoCommands.h.
std::string ml::CSOCommand::commandName |
The command as a string (for debugging purposes).
Definition at line 38 of file CSOUndoRedoCommands.h.