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

Handler that connects synchronized display actions across all renderers. More...

#include <mitkDisplayActionEventHandlerSynchronized.h>

Inheritance diagram for mitk::DisplayActionEventHandlerSynchronized:
Collaboration diagram for mitk::DisplayActionEventHandlerSynchronized:

Protected Member Functions

void InitActionsImpl (const std::string &prefixFilter="") override
 Initialize synchronized display actions for all renderers. More...
 

Additional Inherited Members

- Public Types inherited from mitk::DisplayActionEventHandler
using OberserverTagType = unsigned long
 Tag type used to identify registered observers. More...
 
- Public Member Functions inherited from mitk::DisplayActionEventHandler
virtual ~DisplayActionEventHandler ()
 Destructor. Removes all registered observers. More...
 
void SetObservableBroadcast (DisplayActionEventBroadcast *observableBroadcast)
 Set the DisplayActionEventBroadcast instance to observe. More...
 
OberserverTagType ConnectDisplayActionEvent (const DisplayActionEvent &displayActionEvent, const StdFunctionCommand::ActionFunction &actionFunction, const StdFunctionCommand::FilterFunction &filterFunction=[](const itk::EventObject &) { return true;})
 Register an observer for a specific display action event. More...
 
void DisconnectObserver (OberserverTagType observerTag)
 Remove an observer identified by its tag. More...
 
const std::vector< OberserverTagType > & GetAllObserverTags ()
 Get all currently registered observer tags. More...
 
void InitActions (std::string prefixFilter="")
 Initialize pre-defined display actions and connect them to the broadcast. More...
 
- Protected Attributes inherited from mitk::DisplayActionEventHandler
WeakPointer< DisplayActionEventBroadcast > m_ObservableBroadcast
 
std::vector< OberserverTagType > m_ObserverTags
 

Detailed Description

Handler that connects synchronized display actions across all renderers.

All renderers react to the same display action events. Camera moves, zooms, and scrolls are propagated to every renderer managed by the same RenderingManager.

See also
DisplayActionEventHandler DisplayActionEventFunctions

Definition at line 32 of file mitkDisplayActionEventHandlerSynchronized.h.

Member Function Documentation

◆ InitActionsImpl()

void mitk::DisplayActionEventHandlerSynchronized::InitActionsImpl ( const std::string &  prefixFilter = "")
overrideprotectedvirtual

Initialize synchronized display actions for all renderers.

Precondition
The observable broadcast must have been set.
Exceptions
mitk::Exceptionif the observable is null.
Parameters
prefixFilterOnly react to / send changes to renderers whose name starts with this prefix.

Reimplemented from mitk::DisplayActionEventHandler.


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