Medical Imaging Interaction Toolkit
2024.06.00
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 mitkApplicationCursor_h
14
#define mitkApplicationCursor_h
15
16
#include "
mitkNumericTypes.h
"
17
#include <
MitkCoreExports.h
>
18
19
namespace
mitk
20
{
28
class
MITKCORE_EXPORT
ApplicationCursorImplementation
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
46
virtual
~ApplicationCursorImplementation
() {}
47
protected
:
48
private
:
49
};
50
61
class
MITKCORE_EXPORT
ApplicationCursor
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
:
88
ApplicationCursor
();
89
90
private
:
91
static
ApplicationCursorImplementation
*m_Implementation;
92
};
93
94
}
// namespace
95
96
#endif
mitk::ApplicationCursor
Allows to override the application's cursor.
Definition:
mitkApplicationCursor.h:61
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::ApplicationCursorImplementation::~ApplicationCursorImplementation
virtual ~ApplicationCursorImplementation()
Definition:
mitkApplicationCursor.h:46
MitkCoreExports.h
mitk::Point< int, 2 >
mitkNumericTypes.h
mitk::ApplicationCursorImplementation
Toolkit specific implementation of mitk::ApplicationCursor.
Definition:
mitkApplicationCursor.h:28
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkApplicationCursor.h
Generated on Mon Jun 17 2024 12:43:23 for Medical Imaging Interaction Toolkit by
1.8.17