Base class for all operations in the undo/redo framework.
More...
#include <mitkOperation.h>
Base class for all operations in the undo/redo framework.
An Operation encapsulates a single undoable/redoable action. Each concrete operation subclass stores the data needed to perform and reverse the action. Operations are paired in OperationEvent objects (do-operation and undo-operation).
- See also
- OperationEvent, UndoController, OperationActor
Definition at line 37 of file mitkOperation.h.
◆ ~Operation()
| virtual mitk::Operation::~Operation |
( |
| ) |
|
|
virtualdefault |
◆ Operation() [1/3]
Construct an operation with the given type.
- Parameters
-
| [in] | operationType | The operation type identifier. |
◆ Operation() [2/3]
| mitk::Operation::Operation |
( |
const Operation & |
| ) |
|
|
protecteddefault |
◆ Operation() [3/3]
◆ GetOperationType()
Get the type identifier of this operation.
- Returns
- The operation type (values defined in mitkInteractionConst.h).
◆ mitkClassMacroNoParent()
| mitk::Operation::mitkClassMacroNoParent |
( |
Operation |
| ) |
const |
Check whether this operation is still valid and can be executed.
The default implementation always returns true. Subclasses may override to reflect invalidation (e.g. when the target object has been deleted).
- Returns
- True if the operation can be executed.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ m_OperationType
The type identifier for this operation.
Definition at line 72 of file mitkOperation.h.
The documentation for this class was generated from the following file: