Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
A linear undo model with one undo and one redo stack. More...
#include <mitkLimitedLinearUndo.h>
Public Types | |
typedef std::vector< UndoStackItem * > | UndoContainer |
typedef std::vector< UndoStackItem * >::reverse_iterator | UndoContainerRevIter |
typedef LimitedLinearUndo | Self |
typedef UndoModel | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
Public Types inherited from mitk::UndoModel | |
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 override |
virtual const char * | GetClassName () const |
Pointer | Clone () const |
virtual bool | SetOperationEvent (UndoStackItem *stackItem) override |
virtual bool | Undo () override |
Undoes the last changes. More... | |
virtual bool | Undo (bool) override |
virtual bool | Undo (int oeid) |
Undoes all changes until ObjectEventID oeid. More... | |
virtual bool | Redo () override |
Undoes the last changes. More... | |
virtual bool | Redo (bool) override |
virtual bool | Redo (int oeid) |
Redoes all changes until ObjectEventID oeid. More... | |
virtual void | Clear () override |
Clears UndoList and RedoList. More... | |
virtual void | ClearRedoList () override |
Clears the RedoList. More... | |
virtual bool | RedoListEmpty () override |
True, if RedoList is empty. More... | |
virtual int | GetLastObjectEventIdInList () override |
Returns the ObjectEventId of the top element in the OperationHistory. More... | |
virtual int | GetLastGroupEventIdInList () override |
Returns the GroupEventId of the top element in the OperationHistory. More... | |
virtual OperationEvent * | GetLastOfType (OperationActor *destination, OperationType opType) override |
Returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing found, then returns NULL. More... | |
Static Public Member Functions | |
static const char * | GetStaticNameOfClass () |
static Pointer | New () |
Static Public Member Functions inherited from mitk::UndoModel | |
static const char * | GetStaticNameOfClass () |
Protected Member Functions | |
LimitedLinearUndo () | |
virtual | ~LimitedLinearUndo () |
void | ClearList (UndoContainer *list) |
Protected Member Functions inherited from mitk::UndoModel | |
UndoModel () | |
virtual | ~UndoModel () |
Protected Attributes | |
UndoContainer | m_UndoList |
UndoContainer | m_RedoList |
A linear undo model with one undo and one redo stack.
Derived from UndoModel AND itk::Object. Invokes ITK-events to signal listening GUI elements, whether each of the stacks is empty or not (to enable/disable button, ...)
Definition at line 38 of file mitkLimitedLinearUndo.h.
typedef itk::SmartPointer<const Self> mitk::LimitedLinearUndo::ConstPointer |
Definition at line 44 of file mitkLimitedLinearUndo.h.
Definition at line 44 of file mitkLimitedLinearUndo.h.
Definition at line 44 of file mitkLimitedLinearUndo.h.
Definition at line 44 of file mitkLimitedLinearUndo.h.
typedef std::vector<UndoStackItem *> mitk::LimitedLinearUndo::UndoContainer |
Definition at line 41 of file mitkLimitedLinearUndo.h.
typedef std::vector<UndoStackItem *>::reverse_iterator mitk::LimitedLinearUndo::UndoContainerRevIter |
Definition at line 42 of file mitkLimitedLinearUndo.h.
|
protected |
Constructor
Definition at line 20 of file mitkLimitedLinearUndo.cpp.
|
protectedvirtual |
Destructor
Definition at line 25 of file mitkLimitedLinearUndo.cpp.
|
overridevirtual |
Clears UndoList and RedoList.
Implements mitk::UndoModel.
Definition at line 153 of file mitkLimitedLinearUndo.cpp.
|
protected |
Definition at line 32 of file mitkLimitedLinearUndo.cpp.
|
overridevirtual |
Clears the RedoList.
Implements mitk::UndoModel.
Definition at line 162 of file mitkLimitedLinearUndo.cpp.
Pointer mitk::LimitedLinearUndo::Clone | ( | ) | const |
|
inlineoverridevirtual |
Reimplemented from mitk::UndoModel.
Reimplemented in mitk::VerboseLimitedLinearUndo.
Definition at line 44 of file mitkLimitedLinearUndo.h.
|
virtual |
Reimplemented from mitk::UndoModel.
Reimplemented in mitk::VerboseLimitedLinearUndo.
|
overridevirtual |
Returns the GroupEventId of the top element in the OperationHistory.
Implements mitk::UndoModel.
Definition at line 178 of file mitkLimitedLinearUndo.cpp.
|
overridevirtual |
Returns the ObjectEventId of the top element in the OperationHistory.
Implements mitk::UndoModel.
Definition at line 173 of file mitkLimitedLinearUndo.cpp.
|
overridevirtual |
Returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing found, then returns NULL.
Implements mitk::UndoModel.
Definition at line 183 of file mitkLimitedLinearUndo.cpp.
References mitk::OperationEvent::GetDestination(), mitk::OperationEvent::GetOperation(), mitk::Operation::GetOperationType(), and mitk::OperationEvent::IsValid().
|
inlinestatic |
Definition at line 44 of file mitkLimitedLinearUndo.h.
|
static |
Referenced by mitk::UndoController::AddUndoModel(), and mitk::UndoController::UndoController().
|
overridevirtual |
Undoes the last changes.
Reads the top element of the Redo-Stack, executes the operation, swaps the OperationEvent-Operation with the Undo-Operation and sets it to Undo-Stack
Implements mitk::UndoModel.
Definition at line 119 of file mitkLimitedLinearUndo.cpp.
|
overridevirtual |
Implements mitk::UndoModel.
Definition at line 114 of file mitkLimitedLinearUndo.cpp.
|
virtual |
Redoes all changes until ObjectEventID oeid.
Definition at line 128 of file mitkLimitedLinearUndo.cpp.
References mitk::RenderingManager::GetInstance(), and mitk::RenderingManager::RequestUpdateAll().
|
overridevirtual |
True, if RedoList is empty.
Implements mitk::UndoModel.
Definition at line 168 of file mitkLimitedLinearUndo.cpp.
|
overridevirtual |
Implements mitk::UndoModel.
Reimplemented in mitk::VerboseLimitedLinearUndo.
Definition at line 42 of file mitkLimitedLinearUndo.cpp.
|
overridevirtual |
Undoes the last changes.
Reads the top element of the Undo-Stack, executes the operation, swaps the OperationEvent-Undo with the Operation and sets it to Redo-Stack
Implements mitk::UndoModel.
Definition at line 78 of file mitkLimitedLinearUndo.cpp.
|
overridevirtual |
Implements mitk::UndoModel.
Definition at line 62 of file mitkLimitedLinearUndo.cpp.
|
virtual |
Undoes all changes until ObjectEventID oeid.
Definition at line 87 of file mitkLimitedLinearUndo.cpp.
References mitk::RenderingManager::GetInstance(), and mitk::RenderingManager::RequestUpdateAll().
|
protected |
Definition at line 119 of file mitkLimitedLinearUndo.h.
|
protected |
Definition at line 117 of file mitkLimitedLinearUndo.h.