13 #ifndef mitkUndoModel_h
14 #define mitkUndoModel_h
18 #include <itkObject.h>
19 #include <itkObjectFactory.h>
42 virtual bool Undo(
bool fine) = 0;
45 virtual bool Redo(
bool fine) = 0;
abstract class, that can be used by Undo to undo an operation.
Represents a pair of operations: undo and the according redo.
superclass for all UndoModels
virtual bool SetOperationEvent(UndoStackItem *stackItem)=0
virtual bool RedoListEmpty()=0
true if RedoList is empty
virtual bool Undo(bool fine)=0
virtual int GetLastGroupEventIdInList()=0
returns the GroupEventId of the top Element in the OperationHistory of the selected UndoModel
virtual unsigned int RemoveInvalidOperations()=0
Removes invalid operations from the undo/redo stack.
virtual std::size_t GetUndoLimit() const =0
Gets the limit on the size of the undo history. The undo limit determines how many items can be store...
virtual void Clear()=0
clears undo and Redolist
virtual void SetUndoLimit(std::size_t limit)=0
Sets a limit on the size of the undo history. If the limit is reached, the oldest undo items will be ...
virtual bool UndoListEmpty()=0
true if UndoList is empty
virtual OperationEvent * GetLastOfType(OperationActor *destination, OperationType opType)=0
returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing ...
virtual void ClearRedoList()=0
clears the RedoList
virtual int GetLastObjectEventIdInList()=0
returns the ObjectEventId of the top Element in the OperationHistory of the selected UndoModel
virtual bool Redo(bool fine)=0
Represents an entry of the undo or redo stack.
#define mitkClassMacroItkParent(className, SuperClassName)
Find image slices visible on a given plane.