MeVisLabToolboxReference
ml::CSOCommand Class Reference

Base class for a CSOCommand for the undo/redo mechanism. More...

#include <CSOUndoRedoCommands.h>

Inheritance diagram for ml::CSOCommand:
ml::CSOCmdAddCSO ml::CSOCmdAddCSOGroup ml::CSOCmdAddCSOList ml::CSOCmdAddCSOSet ml::CSOCmdAddCSOtoGroup ml::CSOCmdInsertRemoveSeedPoint ml::CSOCmdModifySet ml::CSOCmdMoveContour ml::CSOCmdMoveSeedPoint ml::CSOCmdRemoveCSO ml::CSOCmdRemoveCSOfromGroup ml::CSOCmdRemoveCSOGroup ml::CSOCmdRemoveCSOSet

List of all members.

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).

Detailed Description

Base class for a CSOCommand for the undo/redo mechanism.

Definition at line 23 of file CSOUndoRedoCommands.h.


Constructor & Destructor Documentation

ml::CSOCommand::CSOCommand ( )

Constructor.

virtual ml::CSOCommand::~CSOCommand ( ) [virtual]

Destructor.


Member Function Documentation

virtual int ml::CSOCommand::execute ( ) [pure virtual]
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.


Member Data Documentation

The command as a string (for debugging purposes).

Definition at line 38 of file CSOUndoRedoCommands.h.


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