|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Connects a DataStorage with a Dispatcher for interaction event routing. More...
#include <mitkBindDispatcherInteractor.h>
Public Member Functions | |
| BindDispatcherInteractor (const std::string &rendererName) | |
| Construct a BindDispatcherInteractor for the given renderer. More... | |
| ~BindDispatcherInteractor () | |
| Destructor. Unregisters from the current DataStorage. More... | |
| void | SetDataStorage (DataStorage::Pointer dataStorage) |
| Set the DataStorage whose events this class subscribes to. More... | |
| void | SetDispatcher (Dispatcher::Pointer dispatcher) |
| Set the Dispatcher to be notified of data node changes. More... | |
| Dispatcher::Pointer | GetDispatcher () const |
| Return the currently active Dispatcher. More... | |
Connects a DataStorage with a Dispatcher for interaction event routing.
This is done by registering for DataStorage events and forwarding them to the registered Dispatcher. When a DataInteractor is registered with a DataNode, the Dispatcher will be notified. This class also registers the MicroService through which InteractionEventObservers can register to receive events.
Definition at line 37 of file mitkBindDispatcherInteractor.h.
| mitk::BindDispatcherInteractor::BindDispatcherInteractor | ( | const std::string & | rendererName | ) |
Construct a BindDispatcherInteractor for the given renderer.
| rendererName | Name of the renderer whose Dispatcher is created. |
| mitk::BindDispatcherInteractor::~BindDispatcherInteractor | ( | ) |
Destructor. Unregisters from the current DataStorage.
| Dispatcher::Pointer mitk::BindDispatcherInteractor::GetDispatcher | ( | ) | const |
Return the currently active Dispatcher.
| void mitk::BindDispatcherInteractor::SetDataStorage | ( | DataStorage::Pointer | dataStorage | ) |
Set the DataStorage whose events this class subscribes to.
When changed, the class unregisters from the previous DataStorage and registers with the new one.
| dataStorage | The DataStorage to observe. |
| void mitk::BindDispatcherInteractor::SetDispatcher | ( | Dispatcher::Pointer | dispatcher | ) |
Set the Dispatcher to be notified of data node changes.
By default each RenderWindow gets its own Dispatcher; this function can be used to override that behavior.
| dispatcher | The Dispatcher to use. |