Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkInteractionKeyEvent.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 MITKINTERACTIONKEYEVENT_H_
14 #define MITKINTERACTIONKEYEVENT_H_
15 
16 #include "itkObject.h"
17 #include "itkObjectFactory.h"
18 #include "mitkBaseRenderer.h"
19 #include "mitkCommon.h"
20 #include "mitkInteractionEvent.h"
23 #include <cstring>
24 
25 #include <MitkCoreExports.h>
26 
27 /*
28  * Note: A Click with the MiddleButton is to be handled with MousePressEvents
29  */
30 namespace mitk
31 {
40  {
41  public:
44 
45  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
46 
47  ModifierKeys GetModifiers() const;
48  std::string GetKey() const;
49 
50  protected:
51  InteractionKeyEvent(BaseRenderer *, const std::string &key, ModifierKeys modifiers);
52  ~InteractionKeyEvent() override;
53 
54  bool IsEqual(const InteractionEvent &) const override;
55 
56  private:
57  std::string m_Key;
58  ModifierKeys m_Modifiers;
59  };
60 } /* namespace mitk */
61 
62 #endif /* MITKINTERACTIONKEYEVENT_H_ */
#define MITKCORE_EXPORT
Organizes the rendering process.
STL namespace.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
Handles key events. Takes a std::string for pressed key or special key description, mitk::ModifierKeys for modifiers
#define mitkNewMacro3Param(classname, typea, typeb, typec)
Definition: mitkCommon.h:98