Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
superclass for all UndoModels More...
#include <mitkUndoModel.h>
Public Types | |
typedef UndoModel | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Member Functions | |
virtual std::vector< std::string > | GetClassHierarchy () const |
virtual const char * | GetClassName () const |
virtual bool | SetOperationEvent (UndoStackItem *stackItem)=0 |
virtual bool | Undo ()=0 |
virtual bool | Undo (bool fine)=0 |
virtual bool | Redo ()=0 |
virtual bool | Redo (bool fine)=0 |
virtual void | Clear ()=0 |
clears undo and Redolist More... | |
virtual void | ClearRedoList ()=0 |
clears the RedoList More... | |
virtual bool | RedoListEmpty ()=0 |
true if RedoList is empty More... | |
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 stored in the undo stack. If the value is 0 that means that there is no limit. More... | |
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 dropped from the bottom of the undo stack. The 0 value means that there is no limit. More... | |
virtual int | GetLastObjectEventIdInList ()=0 |
returns the ObjectEventId of the top Element in the OperationHistory of the selected UndoModel More... | |
virtual int | GetLastGroupEventIdInList ()=0 |
returns the GroupEventId of the top Element in the OperationHistory of the selected UndoModel More... | |
virtual OperationEvent * | GetLastOfType (OperationActor *destination, OperationType opType)=0 |
returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing found, then returns nullptr More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
UndoModel () | |
~UndoModel () override | |
superclass for all UndoModels
all necessary operations, that all UndoModels share.
Definition at line 32 of file mitkUndoModel.h.
typedef itk::SmartPointer<const Self> mitk::UndoModel::ConstPointer |
Definition at line 35 of file mitkUndoModel.h.
Definition at line 35 of file mitkUndoModel.h.
typedef UndoModel mitk::UndoModel::Self |
Definition at line 35 of file mitkUndoModel.h.
typedef itk::Object mitk::UndoModel::Superclass |
Definition at line 35 of file mitkUndoModel.h.
|
inlineprotected |
Definition at line 94 of file mitkUndoModel.h.
|
inlineoverrideprotected |
Definition at line 95 of file mitkUndoModel.h.
|
pure virtual |
clears undo and Redolist
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
clears the RedoList
Implemented in mitk::LimitedLinearUndo.
|
inlinevirtual |
Reimplemented in mitk::LimitedLinearUndo, and mitk::VerboseLimitedLinearUndo.
Definition at line 35 of file mitkUndoModel.h.
|
virtual |
Reimplemented in mitk::LimitedLinearUndo, and mitk::VerboseLimitedLinearUndo.
|
pure virtual |
returns the GroupEventId of the top Element in the OperationHistory of the selected UndoModel
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
returns the ObjectEventId of the top Element in the OperationHistory of the selected UndoModel
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing found, then returns nullptr
needed to get the old Position of an Element for declaring an UndoOperation
Implemented in mitk::LimitedLinearUndo.
|
inlinestatic |
Definition at line 35 of file mitkUndoModel.h.
|
pure virtual |
Gets the limit on the size of the undo history. The undo limit determines how many items can be stored in the undo stack. If the value is 0 that means that there is no limit.
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
true if RedoList is empty
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Implemented in mitk::VerboseLimitedLinearUndo, and mitk::LimitedLinearUndo.
|
pure virtual |
Sets 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. The 0 value means that there is no limit.
limit | the maximum number of items on the stack |
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Implemented in mitk::LimitedLinearUndo.
|
pure virtual |
Implemented in mitk::LimitedLinearUndo.