Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitk::BindDispatcherInteractor Class Reference

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...
 

Detailed Description

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.

See also
Dispatcher DataStorage DataInteractor

Definition at line 37 of file mitkBindDispatcherInteractor.h.

Constructor & Destructor Documentation

◆ BindDispatcherInteractor()

mitk::BindDispatcherInteractor::BindDispatcherInteractor ( const std::string &  rendererName)

Construct a BindDispatcherInteractor for the given renderer.

Parameters
rendererNameName of the renderer whose Dispatcher is created.

◆ ~BindDispatcherInteractor()

mitk::BindDispatcherInteractor::~BindDispatcherInteractor ( )

Destructor. Unregisters from the current DataStorage.

Member Function Documentation

◆ GetDispatcher()

Dispatcher::Pointer mitk::BindDispatcherInteractor::GetDispatcher ( ) const

Return the currently active Dispatcher.

Returns
The current Dispatcher instance.

◆ SetDataStorage()

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.

Parameters
dataStorageThe DataStorage to observe.

◆ SetDispatcher()

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.

Parameters
dispatcherThe Dispatcher to use.

The documentation for this class was generated from the following file: