Medical Imaging Interaction Toolkit  2016.11.0
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,
6  Division of Medical and Biological Informatics.
7  All rights reserved.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without
10  even the implied warranty of MERCHANTABILITY or FITNESS FOR
11  A PARTICULAR PURPOSE.
12 
13  See LICENSE.txt or http://www.mitk.org for details.
14 
15  ===================================================================*/
16 
17 #ifndef MITKINTERACTIONKEYEVENT_H_
18 #define MITKINTERACTIONKEYEVENT_H_
19 
20 #include "itkObject.h"
21 #include "itkObjectFactory.h"
22 #include "mitkBaseRenderer.h"
23 #include "mitkCommon.h"
24 #include "mitkInteractionEvent.h"
27 #include <string.h>
28 
29 #include <MitkCoreExports.h>
30 
31 /*
32  * Note: A Click with the MiddleButton is to be handled with MousePressEvents
33  */
34 namespace mitk
35 {
44  {
45  public:
48 
49  bool IsSuperClassOf(const InteractionEvent::Pointer &baseClass) const override;
50 
51  ModifierKeys GetModifiers() const;
52  std::string GetKey() const;
53 
54  protected:
55  InteractionKeyEvent(BaseRenderer *, const std::string &key, ModifierKeys modifiers);
56  virtual ~InteractionKeyEvent();
57 
58  virtual bool IsEqual(const InteractionEvent &) const override;
59 
60  private:
61  std::string m_Key;
62  ModifierKeys m_Modifiers;
63  };
64 } /* namespace mitk */
65 
66 #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:44
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:102