13 #ifndef mitkOperation_h
14 #define mitkOperation_h
17 #include <itkEventObject.h>
50 virtual bool IsValid()
const;
97 const char *
GetEventName()
const override {
return "OperationEndEvent"; }
99 bool CheckEvent(const ::itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e); }
101 ::itk::EventObject *
MakeObject()
const override {
return new Self(m_Operation); }
107 void operator=(
const Self &);
ITK event fired after an operation has been executed.
OperationEndEvent(Operation *operation=nullptr)
Construct an OperationEndEvent.
bool CheckEvent(const ::itk::EventObject *e) const override
Check event type compatibility.
const char * GetEventName() const override
Get the event name.
::itk::EventObject * MakeObject() const override
Clone this event.
Operation * GetOperation() const
Get the associated operation.
~OperationEndEvent() override
Destructor.
Base class for all operations in the undo/redo framework.
OperationType m_OperationType
The type identifier for this operation.
virtual ~Operation()=default
Virtual destructor.
Operation(const Operation &)=default
Operation & operator=(const Operation &)=default
OperationType GetOperationType()
Get the type identifier of this operation.
Operation & operator=(Operation &&)=default
Operation(Operation &&)=default
mitkClassMacroNoParent(Operation) virtual bool IsValid() const
Check whether this operation is still valid and can be executed.
Operation(OperationType operationType)
Construct an operation with the given type.
Find image slices visible on a given plane.
int OperationType
Type alias for operation type identifiers.