Computer Assited Medical Intervention Tool Kit  version 5.0
DicomDialogEntry.h
Go to the documentation of this file.
1/*****************************************************************************
2 * $CAMITK_LICENCE_BEGIN$
3 *
4 * CamiTK - Computer Assisted Medical Intervention ToolKit
5 * (c) 2001-2021 Univ. Grenoble Alpes, CNRS, Grenoble INP, TIMC, 38000 Grenoble, France
6 *
7 * Visit http://camitk.imag.fr for more information
8 *
9 * This file is part of CamiTK.
10 *
11 * CamiTK is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * CamiTK is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * version 3 along with CamiTK. If not, see <http://www.gnu.org/licenses/>.
22 *
23 * $CAMITK_LICENCE_END$
24 ****************************************************************************/
25
26#ifndef DICOMDIALOGENTRY_H
27#define DICOMDIALOGENTRY_H
28
29// Qt includes
30#include <QString>
31#include <QDate>
32
42
43public:
44
46
48 virtual ~DicomDialogEntry() = default;
49
52 bool isSelected();
53 QDate getAcquisitionDate();
54 QTime getAcquisitionTime() const;
55 QString getStudyName();
56 QString getSeriesName();
57 QString getSeriesDescription();
58 QString getPatientName();
60
63 void setSelected(bool value);
64 void setAcquisitionDate(QDate date);
65 void setAcquisitionTime(QTime time);
66 void setStudyName(QString name);
67 void setSeriesDescription(QString name);
68 void setSeriesName(QString name);
69 void setPatientName(QString name);
71
74 static int numberOfItems() {
75 return 5;
76 }
77
78
79private:
80
83
86
89
91 QString studyName;
92
94 QString seriesName;
95
98
100 QString patientName;
101
102
103};
104
105#endif // DICOMDIALOGENTRY_H
106
This class represents a line in the Dialog box of the DICOM series the user is prompted to open.
Definition: DicomDialogEntry.h:41
void setAcquisitionDate(QDate date)
Definition: DicomDialogEntry.cpp:64
void setSeriesDescription(QString name)
Definition: DicomDialogEntry.cpp:76
void setSeriesName(QString name)
Definition: DicomDialogEntry.cpp:73
void setStudyName(QString name)
Definition: DicomDialogEntry.cpp:70
void setSelected(bool value)
Definition: DicomDialogEntry.cpp:61
QTime acquisitionTime
Acquisition time of the SERIES.
Definition: DicomDialogEntry.h:88
virtual ~DicomDialogEntry()=default
Default Destructor.
QDate getAcquisitionDate()
Definition: DicomDialogEntry.cpp:41
bool selected
Is this SERIES selected for opening?
Definition: DicomDialogEntry.h:82
QDate acquisitionDate
Acquisition date of the SERIES.
Definition: DicomDialogEntry.h:85
QString getPatientName()
Definition: DicomDialogEntry.cpp:56
QString seriesName
Name of this SERIES.
Definition: DicomDialogEntry.h:94
void setPatientName(QString name)
Definition: DicomDialogEntry.cpp:79
DicomDialogEntry()
Definition: DicomDialogEntry.cpp:30
QString getSeriesDescription()
Definition: DicomDialogEntry.cpp:53
QString seriesDescription
Description of this SERIES.
Definition: DicomDialogEntry.h:97
QString studyName
Name of the STUDY this SERIES belongs to.
Definition: DicomDialogEntry.h:91
QString getSeriesName()
Definition: DicomDialogEntry.cpp:50
QString patientName
Name of the patient.
Definition: DicomDialogEntry.h:100
static int numberOfItems()
Get the number of item to display for the corresponding DicomTableWidgetItem class This is used to se...
Definition: DicomDialogEntry.h:74
bool isSelected()
Definition: DicomDialogEntry.cpp:38
QTime getAcquisitionTime() const
Definition: DicomDialogEntry.cpp:44
QString getStudyName()
Definition: DicomDialogEntry.cpp:47
void setAcquisitionTime(QTime time)
Definition: DicomDialogEntry.cpp:67