Medical Imaging Interaction Toolkit  2021.02.99-89548602
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 (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 MITK_APPLICATION_CURSOR_H_DEFINED_AND_ALL_IS_GOOD
14 #define MITK_APPLICATION_CURSOR_H_DEFINED_AND_ALL_IS_GOOD
15 
16 #include "mitkNumericTypes.h"
17 #include <MitkCoreExports.h>
18 
19 namespace mitk
20 {
29  {
30  public:
32  virtual void PushCursor(const char *XPM[], int hotspotX, int hotspotY) = 0;
33 
35  virtual void PushCursor(std::istream &, int hotspotX, int hotspotY) = 0;
36 
38  virtual void PopCursor() = 0;
39 
41  virtual const Point2I GetCursorPosition() = 0;
42 
44  virtual void SetCursorPosition(const Point2I &) = 0;
45 
47  protected:
48  private:
49  };
50 
62  {
63  public:
65  static ApplicationCursor *GetInstance();
66 
68  static void RegisterImplementation(ApplicationCursorImplementation *implementation);
69 
71  void PushCursor(const char *XPM[], int hotspotX = -1, int hotspotY = -1);
72 
74  void PushCursor(std::istream &, int hotspotX = -1, int hotspotY = -1);
75 
77  void PopCursor();
78 
81  const Point2I GetCursorPosition();
82 
84  void SetCursorPosition(const Point2I &);
85 
86  protected:
89 
90  private:
91  static ApplicationCursorImplementation *m_Implementation;
92  };
93 
94 } // namespace
95 
96 #endif
#define MITKCORE_EXPORT
Allows to override the application&#39;s cursor.
DataCollection - Class to facilitate loading/accessing structured data.
Toolkit specific implementation of mitk::ApplicationCursor.