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

Handler that connects a standard mix of synchronized and desynchronized display actions. More...

#include <mitkDisplayActionEventHandlerStd.h>

Inheritance diagram for mitk::DisplayActionEventHandlerStd:
Collaboration diagram for mitk::DisplayActionEventHandlerStd:

Protected Member Functions

void InitActionsImpl (const std::string &prefixFilter="") override
 Initialize the standard mix of display actions. 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 a standard mix of synchronized and desynchronized display actions.

Uses:

  • SetCrosshairSynchronizedAction (synchronized crosshair)
  • MoveSenderCameraAction (per-renderer move)
  • ZoomSenderCameraAction (per-renderer zoom)
  • ScrollSliceStepperAction (per-renderer scroll)
See also
DisplayActionEventHandler DisplayActionEventFunctions

Definition at line 34 of file mitkDisplayActionEventHandlerStd.h.

Member Function Documentation

◆ InitActionsImpl()

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

Initialize the standard mix of display actions.

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: