13 #ifndef mitkUndoModel_h
14 #define mitkUndoModel_h
18 #include <itkObject.h>
19 #include <itkObjectFactory.h>
62 virtual bool Undo(
bool fine) = 0;
76 virtual bool Redo(
bool fine) = 0;
abstract class, that can be used by Undo to undo an operation.
Pairs a do-operation with its inverse undo-operation.
Abstract superclass for all undo models.
virtual bool SetOperationEvent(UndoStackItem *stackItem)=0
Store an operation event on the undo stack.
virtual bool RedoListEmpty()=0
Check whether the redo list is empty.
virtual bool Undo(bool fine)=0
Undo the last operation with control over granularity.
mitkClassMacroItkParent(UndoModel, itk::Object)
virtual int GetLastGroupEventIdInList()=0
Return the GroupEventId of the top element in the undo history.
virtual unsigned int RemoveInvalidOperations()=0
Remove invalid operations from the undo/redo stack.
virtual std::size_t GetUndoLimit() const =0
Get the limit on the size of the undo history.
virtual void Clear()=0
Clear both the undo and redo lists.
virtual void SetUndoLimit(std::size_t limit)=0
Set a limit on the size of the undo history.
virtual bool UndoListEmpty()=0
Check whether the undo list is empty.
virtual OperationEvent * GetLastOfType(OperationActor *destination, OperationType opType)=0
Return the last OperationEvent matching the given destination and type.
virtual void ClearRedoList()=0
Clear the redo list only.
virtual int GetLastObjectEventIdInList()=0
Return the ObjectEventId of the top element in the undo history.
virtual bool Redo()=0
Redo the last undone operation (fine-grained by ObjectEventId).
virtual bool Redo(bool fine)=0
Redo the last undone operation with control over granularity.
virtual bool Undo()=0
Undo the last operation (fine-grained by ObjectEventId).
Represents an entry on the undo or redo stack.
Find image slices visible on a given plane.
int OperationType
Type alias for operation type identifiers.