-
Notifications
You must be signed in to change notification settings - Fork 0
/
QtDcm.h
161 lines (125 loc) · 3.94 KB
/
QtDcm.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
/*
QtDcm is a C++ Qt based library for communication and conversion of Dicom images.
Copyright (C) 2011 Alexandre Abadie <Alexandre.Abadie@univ-rennes1.fr>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef QTDCM_H
#define QTDCM_H
#include "qtdcmExports.h"
#include "ui_qtdcm.h"
#include <QtGui>
class QtDcmPrivate;
class QtDcmManager;
/**
* This class contains the widget for managing Dicom data. It is possible to read and display in a QTreeWidget
* the content of a DICOMDIR. It is also possible to query and retrieve data from a PACS.
* Once read/retrieve, each serie can be reconstructed, using the QtDcmManager.
*/
class QtDcm : public QWidget, public Ui::QtDcmWidget
{
Q_OBJECT
public:
QtDcm ( QWidget *parent = 0 ); /** Classic constructor */
~QtDcm();
/**
* Get the pointer of the treewidget
*
* @return the pointer on the QTreeWidget
*/
QTreeView * getPatientsTreeView()
{
return treeWidgetPatients;
}
QTreeView * getStudiesTreeView()
{
return treeWidgetStudies;
}
QTreeView * getSeriesTreeView()
{
return treeWidgetSeries;
}
enum mode
{
CD, PACS
};
/**
* Clear the content of the QTreeWidget
*/
void clearDisplay();
/**
* Initialize SIGNAL/SLOTS connections of the different widget
*
*/
void initConnections();
public slots:
void findSCU();
/**
* Slot that change the modality parameter of the query
*
*/
void updateModality ( int index );
void updateSex ( int index );
void updatePACS ( int index );
/**
* Slot that launch the Date selection dialog. This change the begin date (or current date) for the Dicom query
*
*/
void startDateChanged ( QDate date );
/**
* Slot that launch the Date selection dialog. This change the end date for the Dicom query (Use only in range mode)
*
*/
void endDateChanged ( QDate date );
void patientItemSelected ( QTreeWidgetItem* current, QTreeWidgetItem* previous );
void studyItemSelected ( QTreeWidgetItem* current, QTreeWidgetItem* previous );
void serieItemSelected ( QTreeWidgetItem* current, QTreeWidgetItem* previous );
void serieItemClicked ( QTreeWidgetItem* current, int );
/**
* Slot that query the list of server with the user specified parameters
*/
void queryPACS();
/**
* Slot that launch a QFileDialog for choosing a dicomdir
*
*
*/
void openDicomdir();
void loadPatientsFromDicomdir();
/**
* Slot that launch the PACS preferences dialog
*
*/
void editPreferences();
/**
* Slot called when user modify patient name edit line
*/
void patientNameTextChanged ( QString );
/**
* Slot called when user modify serie description edit line
*/
void serieDescriptionTextChanged ( QString );
/**
* Slot called when user modify study description edit line
*/
void studyDescriptionTextChanged ( QString );
/**
* Update the PACS combo box when the user modify the preferences
*/
void updatePacsComboBox();
signals:
void serieChecked ( bool checked );
void serieSelected ( bool selected );
private:
QtDcmPrivate *d;
};
#endif