Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkCallbackFromGUIThread.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkCallbackFromGUIThread_h
14 #define QmitkCallbackFromGUIThread_h
15 
18 
19 #include <QObject>
20 
35 {
36  Q_OBJECT
37 
38 public:
48  void CallThisFromGUIThread(itk::Command *cmd, itk::EventObject *e) override;
49 
54 
57 
63  bool event(QEvent *e) override;
64 
65 protected:
66 private:
67 };
68 
69 #endif
#define MITKQTWIDGETSEXT_EXPORT
Qt-specific implementation of mitk::CallbackFromGUIThreadImplementation.
QmitkCallbackFromGUIThread()
Construct and register as the global GUI thread callback implementation.
bool event(QEvent *e) override
Process posted callback events.
~QmitkCallbackFromGUIThread() override
Destructor.
void CallThisFromGUIThread(itk::Command *cmd, itk::EventObject *e) override
Post the given command for execution on the GUI thread.
Toolkit-specific implementation of mitk::CallbackFromGUIThread.