13 #ifndef LIMITEDLINEARUNDO_H_HEADER_INCLUDED_C16E9C96 14 #define LIMITEDLINEARUNDO_H_HEADER_INCLUDED_C16E9C96 23 #pragma GCC visibility push(default) 24 #include <itkEventObject.h> 25 #pragma GCC visibility pop 43 itkFactorylessNewMacro(
Self);
56 bool Undo(
bool)
override;
60 virtual bool Undo(
int oeid);
70 bool Redo(
bool)
override;
74 virtual bool Redo(
int oeid);
78 void Clear()
override;
82 void ClearRedoList()
override;
86 bool RedoListEmpty()
override;
93 std::size_t GetUndoLimit()
const override;
101 void SetUndoLimit(std::size_t limit)
override;
106 int GetLastObjectEventIdInList()
override;
111 int GetLastGroupEventIdInList()
override;
129 void ClearList(UndoContainer *list);
136 int FirstObjectEventIdOfCurrentGroup(UndoContainer &stack);
138 std::size_t m_UndoLimit;
142 #pragma GCC visibility push(default) 155 #pragma GCC visibility pop
itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent)
DataCollection - Class to facilitate loading/accessing structured data.
A linear undo model with one undo and one redo stack.
abstract class, that can be used by Undo to undo an operation.
#define mitkClassMacro(className, SuperClassName)
Represents an entry of the undo or redo stack.
superclass for all UndoModels
std::deque< UndoStackItem * >::reverse_iterator UndoContainerRevIter
std::deque< UndoStackItem * > UndoContainer
Represents a pair of operations: undo and the according redo.