Medical Imaging Interaction Toolkit
2016.11.0
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 39 of file mitkBindDispatcherInteractor.h.
mitk::BindDispatcherInteractor::BindDispatcherInteractor | ( | const std::string & | rendererName | ) |
Definition at line 26 of file mitkBindDispatcherInteractor.cpp.
References us::ModuleRegistry::GetModule(), us::Module::GetModuleContext(), MITK_ERROR, and mitk::Dispatcher::New().
mitk::BindDispatcherInteractor::~BindDispatcherInteractor | ( | ) |
Definition at line 52 of file mitkBindDispatcherInteractor.cpp.
References m_DataStorage.
mitk::Dispatcher::Pointer mitk::BindDispatcherInteractor::GetDispatcher | ( | ) | const |
Return currently active Dispatcher.
Definition at line 91 of file mitkBindDispatcherInteractor.cpp.
void mitk::BindDispatcherInteractor::SetDataStorage | ( | DataStorage::Pointer | dataStorage | ) |
Sets the DataStorage to which Events the class subscribes.
Definition at line 38 of file mitkBindDispatcherInteractor.cpp.
References m_DataStorage.
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 96 of file mitkBindDispatcherInteractor.cpp.