Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
This Class is used to connect a DataStorage with the Dispatcher. More...
#include <mitkBindDispatcherInteractor.h>
Public Member Functions | |
BindDispatcherInteractor (const std::string &) | |
~BindDispatcherInteractor () | |
void | SetDataStorage (DataStorage::Pointer dataStorage) |
void | SetDispatcher (Dispatcher::Pointer dispatcher) |
Dispatcher::Pointer | GetDispatcher () const |
This Class is used to connect a DataStorage with the Dispatcher.
This is done by registering for DataStorage Events and sending the Events to the registered Dispatcher. When a DataInteractor is registered with a DataNode the Dispatcher will be notified. Also this class registers the MicroService at which InteractionEventObservers can register to receive events.
Definition at line 35 of file mitkBindDispatcherInteractor.h.
mitk::BindDispatcherInteractor::BindDispatcherInteractor | ( | const std::string & | rendererName | ) |
Definition at line 22 of file mitkBindDispatcherInteractor.cpp.
References us::ModuleRegistry::GetModule(), us::Module::GetModuleContext(), MITK_ERROR, and mitk::Dispatcher::New().
mitk::BindDispatcherInteractor::~BindDispatcherInteractor | ( | ) |
Definition at line 48 of file mitkBindDispatcherInteractor.cpp.
mitk::Dispatcher::Pointer mitk::BindDispatcherInteractor::GetDispatcher | ( | ) | const |
Return currently active Dispatcher.
Definition at line 87 of file mitkBindDispatcherInteractor.cpp.
Referenced by mitk::BaseRenderer::GetDispatcher().
void mitk::BindDispatcherInteractor::SetDataStorage | ( | DataStorage::Pointer | dataStorage | ) |
Sets the DataStorage to which Events the class subscribes.
Definition at line 34 of file mitkBindDispatcherInteractor.cpp.
Referenced by mitk::BaseRenderer::SetDataStorage().
void mitk::BindDispatcherInteractor::SetDispatcher | ( | Dispatcher::Pointer | dispatcher | ) |
Sets Dispatcher which will be notified. By default each RenderWindow gets its own Dispatcher, this function can be used to override this behavior.
Definition at line 92 of file mitkBindDispatcherInteractor.cpp.