Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
displayformat.h
Go to the documentation of this file.
1
#ifndef DISPLAYFORMAT_H
2
#define DISPLAYFORMAT_H
3
4
#include <QColor>
5
#include <QObject>
6
#include <QVector>
7
#include <array>
8
9
enum class
Modality
{
BW2D
= 1,
RGB2D
= 2,
BW3D
= 4 };
10
enum class
Layout
{
GRID
,
HORIZONTAL
,
VERTICAL
};
11
enum class
Views
{
SHOW0
= 1,
SHOW1
= 2,
SHOW2
= 4,
SHOW3
= 8,
SHOW012
= 7,
SHOW123
= 14,
SHOW0123
= 15 };
12
13
class
DisplayFormat
:
public
QObject {
14
Q_OBJECT
15
public
:
16
explicit
DisplayFormat
( QObject *parent );
17
~
DisplayFormat
( );
18
19
Modality
modality( )
const
;
20
21
Layout
currentLayout( )
const
;
22
virtual
void
setCurrentLayout(
const
Layout
¤tLayout );
23
24
Views
currentViews( )
const
;
25
virtual
void
setCurrentViews(
const
Views
¤tViews );
26
27
bool
hasViewerControls( )
const
;
28
29
bool
enableTools( )
const
;
30
31
bool
rotateAll( )
const
;
32
33
bool
rotateSingle( )
const
;
34
35
bool
hasOverlay( )
const
;
36
37
bool
showNiftiViews( )
const
;
38
39
bool
showNiftiAxis( )
const
;
40
41
bool
showOrientation( )
const
;
42
43
bool
showPpmViews( )
const
;
44
45
bool
showPpmChannels( )
const
;
46
47
bool
overlay( )
const
;
48
49
void
setOverlay(
bool
overlay );
50
51
void
toggleOverlay( );
52
53
bool
hasLayout( )
const
;
54
55
bool
has3Views( )
const
;
56
57
bool
has4Views( )
const
;
58
59
std::array< bool, 4 > getViews( );
60
61
int
getNumberOfViews( )
const
;
62
virtual
void
setNumberOfViews(
int
numberOfViews ) = 0;
63
64
QColor overlayColor( )
const
;
65
void
setOverlayColor(
const
QColor &overlayColor );
66
67
size_t
getMaximumNumberOfViews( )
const
;
68
69
signals:
70
void
updated( );
71
72
protected
:
73
Modality
m_modality
;
74
Layout
m_currentLayout
;
75
Views
m_currentViews
;
76
77
void
loadSettings( );
78
bool
m_overlay
;
79
80
bool
m_hasViewerControls
;
81
bool
m_enableTools
;
82
bool
m_rotateAll
;
83
bool
m_rotateSingle
;
84
85
bool
m_hasOverlay
;
86
bool
m_hasLayout
;
87
bool
m_has3Views
;
88
bool
m_has4Views
;
89
90
bool
m_showNiftiViews
;
91
bool
m_showNiftiAxis
;
92
bool
m_showOrientation
;
93
bool
m_showPpmViews
;
94
bool
m_showPpmChannels
;
95
96
Views
defaultViews
;
97
int
m_numberOfViews
;
98
size_t
m_maximumNumberOfViews
;
99
QColor
m_overlayColor
;
100
};
101
102
class
BW2DFormat
:
public
DisplayFormat
{
103
public
:
104
BW2DFormat
( QObject *parent = 0 );
105
void
setNumberOfViews(
int
numberOfViews );
106
};
107
108
class
BW3DFormat
:
public
DisplayFormat
{
109
public
:
110
BW3DFormat
( QObject *parent = 0 );
111
void
setNumberOfViews(
int
numberOfViews );
112
};
113
114
class
RGB2DFormat
:
public
DisplayFormat
{
115
public
:
116
RGB2DFormat
( QObject *parent = 0 );
117
void
setNumberOfViews(
int
numberOfViews );
118
};
119
120
#endif
/* DISPLAYFORMAT_H */
DisplayFormat::m_showNiftiViews
bool m_showNiftiViews
Definition:
displayformat.h:90
Modality::BW3D
Modality
Modality
Definition:
displayformat.h:9
Layout::HORIZONTAL
DisplayFormat::m_has4Views
bool m_has4Views
Definition:
displayformat.h:88
DisplayFormat::m_modality
Modality m_modality
Definition:
displayformat.h:73
DisplayFormat::m_rotateAll
bool m_rotateAll
Definition:
displayformat.h:82
Views::SHOW3
Layout::VERTICAL
BW3DFormat
Definition:
displayformat.h:108
Views
Views
Definition:
displayformat.h:11
DisplayFormat::m_rotateSingle
bool m_rotateSingle
Definition:
displayformat.h:83
DisplayFormat::m_showPpmChannels
bool m_showPpmChannels
Definition:
displayformat.h:94
DisplayFormat::defaultViews
Views defaultViews
Definition:
displayformat.h:96
Views::SHOW1
Views::SHOW2
BW2DFormat
Definition:
displayformat.h:102
Views::SHOW012
DisplayFormat::m_hasOverlay
bool m_hasOverlay
Definition:
displayformat.h:85
DisplayFormat::m_showPpmViews
bool m_showPpmViews
Definition:
displayformat.h:93
RGB2DFormat
Definition:
displayformat.h:114
Views::SHOW0123
DisplayFormat::m_hasViewerControls
bool m_hasViewerControls
Definition:
displayformat.h:80
DisplayFormat::m_overlay
bool m_overlay
Definition:
displayformat.h:78
DisplayFormat::m_has3Views
bool m_has3Views
Definition:
displayformat.h:87
DisplayFormat::m_enableTools
bool m_enableTools
Definition:
displayformat.h:81
DisplayFormat
Definition:
displayformat.h:13
Modality::RGB2D
DisplayFormat::m_hasLayout
bool m_hasLayout
Definition:
displayformat.h:86
DisplayFormat::m_overlayColor
QColor m_overlayColor
Definition:
displayformat.h:99
Views::SHOW0
DisplayFormat::m_currentViews
Views m_currentViews
Definition:
displayformat.h:75
DisplayFormat::m_currentLayout
Layout m_currentLayout
Definition:
displayformat.h:74
Layout::GRID
Modality::BW2D
DisplayFormat::m_showNiftiAxis
bool m_showNiftiAxis
Definition:
displayformat.h:91
DisplayFormat::m_showOrientation
bool m_showOrientation
Definition:
displayformat.h:92
Layout
Layout
Definition:
displayformat.h:10
DisplayFormat::m_numberOfViews
int m_numberOfViews
Definition:
displayformat.h:97
DisplayFormat::m_maximumNumberOfViews
size_t m_maximumNumberOfViews
Definition:
displayformat.h:98
Views::SHOW123
BIAL-GUI
src
displayformat.h
Generated by
1.8.11