13 #ifndef mitkCallbackFromGUIThread_h
14 #define mitkCallbackFromGUIThread_h
17 #include <itkCommand.h>
18 #include <itkEventObject.h>
39 const char *
GetEventName()
const override {
return "CallbackEventOneParameter"; }
40 bool CheckEvent(const ::itk::EventObject *e)
const override {
return dynamic_cast<const Self *
>(e); }
53 void operator=(
const Self &);
ITK event that carries a single typed parameter for CallbackFromGUIThread.
~CallbackEventOneParameter() override
bool CheckEvent(const ::itk::EventObject *e) const override
const char * GetEventName() const override
CallbackEventOneParameter(const T t)
Construct with the given data payload.
CallbackEventOneParameter(const Self &s)
CallbackEventOneParameter Self
const T GetData() const
Retrieve the stored data payload.
::itk::EventObject * MakeObject() const override
Toolkit-specific implementation of mitk::CallbackFromGUIThread.
virtual ~CallbackFromGUIThreadImplementation()
virtual void CallThisFromGUIThread(itk::Command *, itk::EventObject *)=0
Execute the given command from the GUI thread.
Allows threads to call some method from within the GUI thread.
void CallThisFromGUIThread(itk::Command *, itk::EventObject *e=nullptr)
Schedule the given command for execution on the GUI thread.
CallbackFromGUIThread()
Hidden constructor (singleton pattern).
static void RegisterImplementation(CallbackFromGUIThreadImplementation *implementation)
Register a toolkit-specific implementation.
static CallbackFromGUIThread * GetInstance()
Return the singleton instance.
Find image slices visible on a given plane.