|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Qt-specific implementation of mitk::CallbackFromGUIThreadImplementation. More...
#include <QmitkCallbackFromGUIThread.h>


Public Member Functions | |
| void | CallThisFromGUIThread (itk::Command *cmd, itk::EventObject *e) override |
| Post the given command for execution on the GUI thread. More... | |
| QmitkCallbackFromGUIThread () | |
| Construct and register as the global GUI thread callback implementation. More... | |
| ~QmitkCallbackFromGUIThread () override | |
| Destructor. More... | |
| bool | event (QEvent *e) override |
| Process posted callback events. More... | |
Public Member Functions inherited from mitk::CallbackFromGUIThreadImplementation | |
| virtual | ~CallbackFromGUIThreadImplementation () |
Qt-specific implementation of mitk::CallbackFromGUIThreadImplementation.
Allows executing itk::Command objects from the Qt GUI thread by posting custom QEvents into the Qt event queue. This is necessary for thread-safe GUI updates from background threads in MITK.
On construction, this object registers itself as the global callback implementation via mitk::CallbackFromGUIThread::RegisterImplementation().
Definition at line 33 of file QmitkCallbackFromGUIThread.h.
| QmitkCallbackFromGUIThread::QmitkCallbackFromGUIThread | ( | ) |
Construct and register as the global GUI thread callback implementation.
|
override |
Destructor.
|
overridevirtual |
Post the given command for execution on the GUI thread.
The command will be executed asynchronously when the Qt event loop processes the posted event.
| [in] | cmd | The itk::Command to execute. |
| [in] | e | The itk::EventObject to pass to the command. Ownership is transferred. |
Implements mitk::CallbackFromGUIThreadImplementation.
|
override |
Process posted callback events.
| [in] | e | The QEvent to handle. |