Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkApplicationCursor.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 MITK_APPLICATION_CURSOR_H_DEFINED_AND_ALL_IS_GOOD
18 #define MITK_APPLICATION_CURSOR_H_DEFINED_AND_ALL_IS_GOOD
19 
20 #include "mitkNumericTypes.h"
21 #include <MitkCoreExports.h>
22 
23 namespace mitk
24 {
33  {
34  public:
36  virtual void PushCursor(const char *XPM[], int hotspotX, int hotspotY) = 0;
37 
39  virtual void PushCursor(std::istream &, int hotspotX, int hotspotY) = 0;
40 
42  virtual void PopCursor() = 0;
43 
45  virtual const Point2I GetCursorPosition() = 0;
46 
48  virtual void SetCursorPosition(const Point2I &) = 0;
49 
51  protected:
52  private:
53  };
54 
66  {
67  public:
69  static ApplicationCursor *GetInstance();
70 
72  static void RegisterImplementation(ApplicationCursorImplementation *implementation);
73 
75  void PushCursor(const char *XPM[], int hotspotX = -1, int hotspotY = -1);
76 
78  void PushCursor(std::istream &, int hotspotX = -1, int hotspotY = -1);
79 
81  void PopCursor();
82 
85  const Point2I GetCursorPosition();
86 
88  void SetCursorPosition(const Point2I &);
89 
90  protected:
93 
94  private:
95  static ApplicationCursorImplementation *m_Implementation;
96  };
97 
98 } // namespace
99 
100 #endif
#define MITKCORE_EXPORT
Allows to override the application's cursor.
DataCollection - Class to facilitate loading/accessing structured data.
Toolkit specific implementation of mitk::ApplicationCursor.