Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
QmitkOverlay.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 QmitkOverlay_h
14
#define QmitkOverlay_h
15
16
// MITK
17
#include "
mitkCommon.h
"
18
#include "
mitkPropertyList.h
"
19
20
// Qt
21
#include <QWidget>
22
23
#include <
MitkQtOverlaysExports.h
>
24
49
class
MITKQTOVERLAYS_EXPORT
QmitkOverlay
:
public
QObject
50
{
51
Q_OBJECT
52
53
public
:
55
enum
DisplayPosition
56
{
57
top_Left = 0,
58
top_Center = 1,
59
top_Right = 2,
60
middle_Left = 3,
61
middle_Right = 4,
62
bottom_Left = 5,
63
bottom_Center = 6,
64
bottom_Right = 7
65
};
66
70
QmitkOverlay
(
const
char
*
id
);
71
75
~
QmitkOverlay
()
override
;
76
78
virtual
void
SetPosition(DisplayPosition);
79
81
virtual
DisplayPosition GetPosition();
82
84
virtual
void
SetLayer(
unsigned
int
);
85
87
virtual
unsigned
int
GetLayer();
88
92
virtual
void
GenerateData
(
mitk::PropertyList::Pointer
/*pl*/
){};
93
97
virtual
QWidget *GetWidget();
98
99
virtual
QSize GetNeededSize() = 0;
100
101
protected
:
105
void
AddDropShadow(QWidget *widget);
107
const
char
*
m_Id
;
108
110
DisplayPosition
m_Position
;
111
113
unsigned
int
m_Layer
;
114
116
QWidget *
m_Widget
;
117
118
bool
m_WidgetIsCustom
;
119
};
120
121
#endif
QmitkOverlay::m_Widget
QWidget * m_Widget
internal QWidget representing the overlay
Definition:
QmitkOverlay.h:116
QmitkOverlay::m_Position
DisplayPosition m_Position
position of the overlay
Definition:
QmitkOverlay.h:110
MitkQtOverlaysExports.h
QmitkOverlay::DisplayPosition
DisplayPosition
enumeration of all possible display positions
Definition:
QmitkOverlay.h:55
QmitkOverlay
Abstract base class for all overlay-objects in MITK.
Definition:
QmitkOverlay.h:49
itk::SmartPointer< Self >
QmitkOverlay::m_WidgetIsCustom
bool m_WidgetIsCustom
Definition:
QmitkOverlay.h:118
QmitkOverlay::m_Id
const char * m_Id
ID of the overlay.
Definition:
QmitkOverlay.h:107
QmitkOverlay::m_Layer
unsigned int m_Layer
layer of the overlay
Definition:
QmitkOverlay.h:113
mitkPropertyList.h
mitkCommon.h
MITKQTOVERLAYS_EXPORT
#define MITKQTOVERLAYS_EXPORT
Definition:
MitkQtOverlaysExports.h:15
QmitkOverlay::GenerateData
virtual void GenerateData(mitk::PropertyList::Pointer)
abstract method to internally setup the overlay
Definition:
QmitkOverlay.h:92
src
MITK
Modules
QtOverlays
QmitkOverlay.h
Generated on Mon Jun 17 2024 12:43:31 for Medical Imaging Interaction Toolkit by
1.8.17