| 
    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, 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 | 
| Not every undo step generates a redo step (a previous step might generate two instead), so...   | |
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 | 
Not every undo step generates a redo step (a previous step might generate two instead), so...
Definition at line 53 of file CSOUndoRedoCommands.h.
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, ml::CSOCmdModifySet, and ml::CSOCmdCSOModifyVisualAttributes.
      
  | 
  override | 
calls execute
      
  | 
  protected | 
Pointer to the csoList.
Definition at line 56 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.