Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
mitkEventInformer.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkEventInformer_h
14 #define mitkEventInformer_h
15 
16 #include <mitkInteractionEvent.h>
18 #include <mitkServiceInterface.h>
19 
20 namespace mitk
21 {
33  {
34  virtual ~EventInformerService() {}
35 
41  virtual void RegisterObserver(InteractionEventObserver::Pointer InteractionEventObserver) = 0;
42 
48  virtual void UnRegisterObserver(InteractionEventObserver::Pointer InteractionEventObserver) = 0;
49 
55  virtual void NotifyObservers(InteractionEvent::Pointer interactionEvent) = 0;
56  };
57 
58 } /* namespace mitk */
60 #endif
Provides the MITK_DECLARE_SERVICE_INTERFACE macro for registering C++ interfaces with both the CppMic...
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)
Declare a C++ interface for use with CppMicroServices (Qt not available).
Find image slices visible on a given plane.
Interface for the micro service that manages InteractionEventObserver registration and notification.
virtual void UnRegisterObserver(InteractionEventObserver::Pointer InteractionEventObserver)=0
Unregister a previously registered observer.
virtual void NotifyObservers(InteractionEvent::Pointer interactionEvent)=0
Notify all registered observers about an interaction event.
virtual void RegisterObserver(InteractionEventObserver::Pointer InteractionEventObserver)=0
Register an observer to receive interaction event notifications.
Interface for observing all InteractionEvents dispatched through the system.