Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::UndoModel Class Referenceabstract

superclass for all UndoModels More...

#include <mitkUndoModel.h>

Inheritance diagram for mitk::UndoModel:
Collaboration diagram for mitk::UndoModel:

Public Types

typedef UndoModel Self
 
typedef itk::Object Superclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 

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 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 OperationEventGetLastOfType (OperationActor *destination, OperationType opType)=0
 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 ()
 

Protected Member Functions

 UndoModel ()
 
virtual ~UndoModel ()
 

Detailed Description

superclass for all UndoModels

all necessary operations, that all UndoModels share.

Definition at line 36 of file mitkUndoModel.h.

Member Typedef Documentation

Definition at line 39 of file mitkUndoModel.h.

Definition at line 39 of file mitkUndoModel.h.

Definition at line 39 of file mitkUndoModel.h.

typedef itk::Object mitk::UndoModel::Superclass

Definition at line 39 of file mitkUndoModel.h.

Constructor & Destructor Documentation

mitk::UndoModel::UndoModel ( )
inlineprotected

Definition at line 83 of file mitkUndoModel.h.

virtual mitk::UndoModel::~UndoModel ( )
inlineprotectedvirtual

Definition at line 84 of file mitkUndoModel.h.

Member Function Documentation

virtual void mitk::UndoModel::Clear ( )
pure virtual
virtual void mitk::UndoModel::ClearRedoList ( )
pure virtual

clears the RedoList

Implemented in mitk::LimitedLinearUndo.

virtual std::vector<std::string> mitk::UndoModel::GetClassHierarchy ( ) const
inlinevirtual

Reimplemented in mitk::LimitedLinearUndo, and mitk::VerboseLimitedLinearUndo.

Definition at line 39 of file mitkUndoModel.h.

virtual const char* mitk::UndoModel::GetClassName ( ) const
virtual
virtual int mitk::UndoModel::GetLastGroupEventIdInList ( )
pure virtual

returns the GroupEventId of the top Element in the OperationHistory of the selected UndoModel

Implemented in mitk::LimitedLinearUndo.

virtual int mitk::UndoModel::GetLastObjectEventIdInList ( )
pure virtual

returns the ObjectEventId of the top Element in the OperationHistory of the selected UndoModel

Implemented in mitk::LimitedLinearUndo.

virtual OperationEvent* mitk::UndoModel::GetLastOfType ( OperationActor destination,
OperationType  opType 
)
pure virtual

returns the last specified OperationEvent in Undo-list corresponding to the given values; if nothing found, then returns NULL

needed to get the old Position of an Element for declaring an UndoOperation

Implemented in mitk::LimitedLinearUndo.

static const char* mitk::UndoModel::GetStaticNameOfClass ( )
inlinestatic

Definition at line 39 of file mitkUndoModel.h.

virtual bool mitk::UndoModel::Redo ( )
pure virtual

Implemented in mitk::LimitedLinearUndo.

Referenced by QmitkRedoAction::Run().

virtual bool mitk::UndoModel::Redo ( bool  fine)
pure virtual

Implemented in mitk::LimitedLinearUndo.

virtual bool mitk::UndoModel::RedoListEmpty ( )
pure virtual

true if RedoList is empty

Implemented in mitk::LimitedLinearUndo.

virtual bool mitk::UndoModel::Undo ( )
pure virtual

Implemented in mitk::LimitedLinearUndo.

Referenced by QmitkUndoAction::Run().

virtual bool mitk::UndoModel::Undo ( bool  fine)
pure virtual

Implemented in mitk::LimitedLinearUndo.


The documentation for this class was generated from the following file: