13 #ifndef mitkOperationEvent_h
14 #define mitkOperationEvent_h
114 static int m_CurrObjectEventId;
116 static int m_CurrGroupEventId;
122 std::string m_Description;
155 std::string description =
"");
Convenience class that helps to manage the lifetime of itk event observers.
abstract class, that can be used by Undo to undo an operation.
Represents a pair of operations: undo and the according redo.
void ReverseAndExecute() override
OperationActor * GetDestination()
~OperationEvent() override
Operation * GetOperation()
bool IsValid() const override
void ReverseOperations() override
OperationEvent(OperationActor *destination, Operation *operation, Operation *undoOperation, std::string description="")
Base class of all Operation-classes.
superclass for all UndoModels
Represents an entry of the undo or redo stack.
virtual void ReverseOperations()
static void IncCurrObjectEventId()
Increases the current ObjectEventId For example if a button click generates operations the ObjectEven...
std::string GetDescription()
Returns the textual description of this object.
virtual bool IsValid() const =0
UndoStackItem(std::string description="")
static int GetCurrObjectEventId()
For combining operations in Objects.
static int GetCurrGroupEventId()
For combining operations in groups.
int GetGroupEventId()
Returns the GroupEventId for this object.
bool m_Reversed
true, if operation and undooperation have been swapped/changed
int GetObjectEventId()
Returns the ObjectEventId for this object.
static void IncCurrGroupEventId()
Increases the current GroupEventId For example if a button click generates operations the GroupEventI...
virtual void ReverseAndExecute()
Find image slices visible on a given plane.