13 #ifndef mitkNonBlockingAlgorithmEvents_h
14 #define mitkNonBlockingAlgorithmEvents_h
16 #include <itkEventObject.h>
20 class NonBlockingAlgorithm;
46 const char *
GetEventName()
const override {
return "NonBlockingAlgorithmEvent"; }
53 bool CheckEvent(const ::itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e); }
74 void operator=(
const Self &);
Base event class for NonBlockingAlgorithm notifications.
NonBlockingAlgorithmEvent(const NonBlockingAlgorithm *algorithm=nullptr)
Construct the event, optionally referencing the originating algorithm.
mitk::NonBlockingAlgorithm::ConstPointer m_Algorithm
The algorithm that raised this event.
bool CheckEvent(const ::itk::EventObject *e) const override
Check whether a given event object is of this type.
NonBlockingAlgorithmEvent(const Self &s)
Copy constructor.
~NonBlockingAlgorithmEvent() override
const char * GetEventName() const override
Return the human-readable name of this event.
::itk::EventObject * MakeObject() const override
Create a copy of this event on the heap.
NonBlockingAlgorithmEvent Self
const mitk::NonBlockingAlgorithm * GetAlgorithm() const
Get the algorithm that raised this event.
Base class for algorithms that can run in a background thread.
Event indicating that a NonBlockingAlgorithm has encountered an error.
ProcessingError(const NonBlockingAlgorithm *algorithm=nullptr)
Construct the event.
~ProcessingError() override
Event indicating that a NonBlockingAlgorithm has produced a result.
ResultAvailable(const NonBlockingAlgorithm *algorithm=nullptr)
Construct the event.
~ResultAvailable() override
Find image slices visible on a given plane.