|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Abstract superclass for all undo models. More...
#include <mitkUndoModel.h>


Public Member Functions | |
| mitkClassMacroItkParent (UndoModel, itk::Object) | |
| virtual bool | SetOperationEvent (UndoStackItem *stackItem)=0 |
| Store an operation event on the undo stack. More... | |
| virtual bool | Undo ()=0 |
| Undo the last operation (fine-grained by ObjectEventId). More... | |
| virtual bool | Undo (bool fine)=0 |
| Undo the last operation with control over granularity. More... | |
| virtual bool | Redo ()=0 |
| Redo the last undone operation (fine-grained by ObjectEventId). More... | |
| virtual bool | Redo (bool fine)=0 |
| Redo the last undone operation with control over granularity. More... | |
| virtual void | Clear ()=0 |
| Clear both the undo and redo lists. More... | |
| virtual void | ClearRedoList ()=0 |
| Clear the redo list only. More... | |
| virtual bool | RedoListEmpty ()=0 |
| Check whether the redo list is empty. More... | |
| virtual bool | UndoListEmpty ()=0 |
| Check whether the undo list is empty. More... | |
| virtual std::size_t | GetUndoLimit () const =0 |
| Get the limit on the size of the undo history. More... | |
| virtual void | SetUndoLimit (std::size_t limit)=0 |
| Set a limit on the size of the undo history. More... | |
| virtual int | GetLastObjectEventIdInList ()=0 |
| Return the ObjectEventId of the top element in the undo history. More... | |
| virtual int | GetLastGroupEventIdInList ()=0 |
| Return the GroupEventId of the top element in the undo history. More... | |
| virtual OperationEvent * | GetLastOfType (OperationActor *destination, OperationType opType)=0 |
| Return the last OperationEvent matching the given destination and type. More... | |
| virtual unsigned int | RemoveInvalidOperations ()=0 |
| Remove invalid operations from the undo/redo stack. More... | |
Protected Member Functions | |
| UndoModel () | |
| ~UndoModel () override | |
Abstract superclass for all undo models.
Defines the interface that all UndoModel implementations must provide, including undo/redo operations, stack management, and history queries.
Definition at line 35 of file mitkUndoModel.h.
|
inlineprotected |
Definition at line 152 of file mitkUndoModel.h.
|
inlineoverrideprotected |
Definition at line 153 of file mitkUndoModel.h.
|
pure virtual |
Clear both the undo and redo lists.
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Clear the redo list only.
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Return the GroupEventId of the top element in the undo history.
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Return the ObjectEventId of the top element in the undo history.
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Return the last OperationEvent matching the given destination and type.
Useful for retrieving the old position of an element when declaring an UndoOperation.
| [in] | destination | The target OperationActor. |
| [in] | opType | The operation type to search for. |
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Get the limit on the size of the undo history.
The undo limit determines how many items can be stored in the undo stack. A value of 0 means there is no limit.
Implemented in mitk::LimitedLinearUndo.
| mitk::UndoModel::mitkClassMacroItkParent | ( | UndoModel | , |
| itk::Object | |||
| ) |
|
pure virtual |
Redo the last undone operation (fine-grained by ObjectEventId).
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Redo the last undone operation with control over granularity.
| [in] | fine | If true, redo by ObjectEventId; if false, redo by GroupEventId. |
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Check whether the redo list is empty.
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Remove invalid operations from the undo/redo stack.
Iterates through all stored OperationEvents and removes those that are no longer valid.
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Store an operation event on the undo stack.
| [in] | stackItem | The undo stack item to store. |
Implemented in mitk::VerboseLimitedLinearUndo, and mitk::LimitedLinearUndo.
|
pure virtual |
Set a limit on the size of the undo history.
If the limit is reached, the oldest undo items will be dropped from the bottom of the undo stack. A value of 0 means there is no limit.
| [in] | limit | The maximum number of items on the stack. |
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Undo the last operation (fine-grained by ObjectEventId).
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Undo the last operation with control over granularity.
| [in] | fine | If true, undo by ObjectEventId; if false, undo by GroupEventId. |
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Check whether the undo list is empty.
Implemented in mitk::LimitedLinearUndo.