Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
mitkVtkEventAdapter.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 mitkVtkEventAdapter_h
14 #define mitkVtkEventAdapter_h
15 
17 #include "mitkMouseMoveEvent.h"
18 #include "mitkMousePressEvent.h"
19 #include "mitkMouseReleaseEvent.h"
20 #include "mitkMouseWheelEvent.h"
21 
22 #include "vtkRenderWindowInteractor.h"
23 
24 //##Documentation
25 //## @brief Generates MITK events from VTK
26 //##
27 //## This class is the NON-QT dependent pendant to QmitkEventAdapter.
28 //## It provides static functions to set up MITK events from VTK source data
29 //##
30 //## @ingroup Interaction
31 
32 namespace mitk
33 {
34  class BaseRenderer;
35 
37  {
38  public:
41  static mitk::MousePressEvent::Pointer AdaptMousePressEvent(mitk::BaseRenderer *sender,
42  unsigned long vtkCommandEventId,
43  vtkRenderWindowInteractor *rwi);
44  static mitk::MouseMoveEvent::Pointer AdaptMouseMoveEvent(mitk::BaseRenderer *sender,
45  unsigned long vtkCommandEventId,
46  vtkRenderWindowInteractor *rwi);
47  static mitk::MouseReleaseEvent::Pointer AdaptMouseReleaseEvent(mitk::BaseRenderer *sender,
48  unsigned long vtkCommandEventId,
49  vtkRenderWindowInteractor *rwi);
50  static mitk::MouseWheelEvent::Pointer AdaptMouseWheelEvent(mitk::BaseRenderer *sender,
51  unsigned long vtkCommandEventId,
52  vtkRenderWindowInteractor *rwi);
53  static mitk::InteractionKeyEvent::Pointer AdaptInteractionKeyEvent(mitk::BaseRenderer *sender,
54  unsigned long vtkCommandEventId,
55  vtkRenderWindowInteractor *rwi);
56 
61  static std::map<BaseRenderer *, int> buttonStateMap;
62  };
63 }
64 
65 #endif
mitkMousePressEvent.h
itk::SmartPointer< Self >
mitk::VtkEventAdapter::buttonStateMap
static std::map< BaseRenderer *, int > buttonStateMap
Definition: mitkVtkEventAdapter.h:61
mitkMouseMoveEvent.h
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::VtkEventAdapter
Definition: mitkVtkEventAdapter.h:36
mitkMouseWheelEvent.h
mitkInteractionKeyEvent.h
mitk::BaseRenderer
Definition: mitkBaseRenderer.h:56
mitkMouseReleaseEvent.h
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition: MitkCoreExports.h:15