-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_axialcoronallores.h
183 lines (138 loc) · 5.19 KB
/
view_axialcoronallores.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
#ifndef VIEW_AXIALCORONALLORES_H
#define VIEW_AXIALCORONALLORES_H
#include <QWidget>
#include <QWidget>
#include <QDir>
#include <QDebug>
#include <QMessageBox>
#include <QSettings>
#include <QDesktopWidget>
#include <QUndoStack>
#include <QUndoView>
#include <QVector4D>
#include <QWhatsThis>
#include <QShortcut>
#include <QLabel>
#include <nifti1.h>
#include <nifti1_io.h>
#include <libnifti.h>
#include "displayinfo.h"
#include "niftimage.h"
#include "util.h"
#include "tracing.h"
#include "exception.h"
#include "subjectconfig.h"
namespace Ui {
class viewAxialCoronalLoRes;
}
class MainWindow;
class viewAxialCoronalLoRes : public QWidget
{
Q_OBJECT
private:
Ui::viewAxialCoronalLoRes *ui;
NIFTImage *fatImage;
NIFTImage *waterImage;
SubjectConfig *subConfig;
TracingData *tracingData;
QUndoView *undoView;
QUndoStack *undoStack;
QLabel *lblStatusLocation;
// Home Tab Shortcuts
QShortcut *upShortcut;
QShortcut *downShortcut;
QShortcut *leftShortcut;
QShortcut *rightShortcut;
// Axial Display Tab Shortcuts
QShortcut *fatRadioBtnShortcut;
QShortcut *waterRadioBtnShortcut;
QShortcut *fatFracRadioBtnShortcut;
QShortcut *waterFracRadioBtnShortcut;
QShortcut *fatWaterRadioBtnShortcut;
QShortcut *waterFatRadioBtnShortcut;
QShortcut *resetViewShortcut;
// Tracing Tab Shortcuts
QShortcut *EATRadioBtnShortcut;
QShortcut *IMATRadioBtnShortcut;
QShortcut *PAATRadioBtnShortcut;
QShortcut *PATRadioBtnShortcut;
QShortcut *SCATRadioBtnShortcut;
QShortcut *VATRadioBtnShortcut;
QShortcut *EATCheckBoxShortcut;
QShortcut *IMATCheckBoxShortcut;
QShortcut *PAATCheckBoxShortcut;
QShortcut *PATCheckBoxShortcut;
QShortcut *SCATCheckBoxShortcut;
QShortcut *VATCheckBoxShortcut;
QShortcut *drawPointsModeShortcut;
QShortcut *erasePointsModeShortcut;
public:
explicit viewAxialCoronalLoRes(QWidget *parent, NIFTImage *fatImage, NIFTImage *waterImage, SubjectConfig *subConfig, TracingData *tracingData);
~viewAxialCoronalLoRes();
MainWindow *parentMain();
bool loadImage(QuaZip *zip);
void setEnableSettings(bool enable);
void setupDefaults();
void readSettings();
void writeSettings();
void changeSliceView(SliceDisplayType newType);
void changeTracingLayer(TracingLayer newLayer);
void changeDrawMode(DrawMode newMode);
friend class viewAxialCoronalHiRes;
private slots:
// Slots that do not contain the on_ prefix are not automatically connected with MOC and so must not include the on_
// or they will search for items in the GUI named that. If on_ prefixed, then they are automatically connected by MOC
void actionOpen_triggered();
void actionSave_triggered();
void actionSaveAs_triggered();
void actionImportTracingData_triggered();
void actionShow_History_triggered();
void actionUndo_triggered();
void actionRedo_triggered();
void upShortcut_triggered();
void downShortcut_triggered();
void leftShortcut_triggered();
void rightShortcut_triggered();
void on_axialSliceSlider_valueChanged(int value);
void on_axialSliceSpinBox_valueChanged(int value);
void on_coronalSliceSlider_valueChanged(int value);
void on_coronalSliceSpinBox_valueChanged(int value);
void on_saggitalSliceSlider_valueChanged(int value);
void on_saggitalSliceSpinBox_valueChanged(int value);
void on_brightnessSlider_valueChanged(int value);
void on_brightnessSpinBox_valueChanged(int value);
void on_brightnessThresSpinBox_valueChanged(int value);
void on_contrastSlider_valueChanged(int value);
void on_contrastSpinBox_valueChanged(int value);
void on_primColorMapComboBox_currentIndexChanged(int index);
void on_secdColorMapComboBox_currentIndexChanged(int index);
void on_primOpacitySlider_valueChanged(int value);
void on_primOpacitySpinBox_valueChanged(int value);
void on_secdOpacitySlider_valueChanged(int value);
void on_secdOpacitySpinBox_valueChanged(int value);
void on_fatRadioBtn_toggled(bool checked);
void on_waterRadioBtn_toggled(bool checked);
void on_fatFracRadioBtn_toggled(bool checked);
void on_waterFracRadioBtn_toggled(bool checked);
void on_fatWaterRadioBtn_toggled(bool checked);
void on_waterFatRadioBtn_toggled(bool checked);
void on_resetViewBtn_clicked();
void on_EATRadioBtn_toggled(bool checked);
void on_IMATRadioBtn_toggled(bool checked);
void on_PAATRadioBtn_toggled(bool checked);
void on_PATRadioBtn_toggled(bool checked);
void on_SCATRadioBtn_toggled(bool checked);
void on_VATRadioBtn_toggled(bool checked);
void on_EATCheckBox_toggled(bool checked);
void on_IMATCheckBox_toggled(bool checked);
void on_PAATCheckBox_toggled(bool checked);
void on_PATCheckBox_toggled(bool checked);
void on_SCATCheckBox_toggled(bool checked);
void on_VATCheckBox_toggled(bool checked);
void on_drawPointsBtn_toggled(bool checked);
void on_eraserBtn_toggled(bool checked);
void on_eraserBrushWidthComboBox_currentIndexChanged(int index);
void undoStack_canUndoChanged(bool canUndo);
void undoStack_canRedoChanged(bool canRedo);
};
#endif // VIEW_AXIALCORONALLORES_H