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 
43 public:
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 
79 private:
80 
82  bool selected;
83 
85  QDate acquisitionDate;
86 
88  QTime acquisitionTime;
89 
91  QString studyName;
92 
94  QString seriesName;
95 
98 
100  QString patientName;
101 
102 
103 };
104 
105 #endif // DICOMDIALOGENTRY_H
106 
DicomDialogEntry::DicomDialogEntry
DicomDialogEntry()
Definition: DicomDialogEntry.cpp:30
DicomDialogEntry::setSelected
void setSelected(bool value)
Definition: DicomDialogEntry.cpp:61
DicomDialogEntry.h
DicomDialogEntry::getPatientName
QString getPatientName()
Definition: DicomDialogEntry.cpp:56
DicomDialogEntry::studyName
QString studyName
Name of the STUDY this SERIES belongs to.
Definition: DicomDialogEntry.h:114
DicomDialogEntry::getAcquisitionDate
QDate getAcquisitionDate()
Definition: DicomDialogEntry.cpp:41
DicomDialogEntry::setSeriesName
void setSeriesName(QString name)
Definition: DicomDialogEntry.cpp:73
DicomDialogEntry::acquisitionTime
QTime acquisitionTime
Acquisition time of the SERIES.
Definition: DicomDialogEntry.h:111
DicomDialogEntry::setSeriesDescription
void setSeriesDescription(QString name)
Definition: DicomDialogEntry.cpp:76
DicomDialogEntry::getStudyName
QString getStudyName()
Definition: DicomDialogEntry.cpp:47
DicomDialogEntry::setAcquisitionDate
void setAcquisitionDate(QDate date)
Definition: DicomDialogEntry.cpp:64
DicomDialogEntry::seriesDescription
QString seriesDescription
Description of this SERIES.
Definition: DicomDialogEntry.h:120
DicomDialogEntry::seriesName
QString seriesName
Name of this SERIES.
Definition: DicomDialogEntry.h:117
DicomDialogEntry::setAcquisitionTime
void setAcquisitionTime(QTime time)
Definition: DicomDialogEntry.cpp:67
DicomDialogEntry::getSeriesName
QString getSeriesName()
Definition: DicomDialogEntry.cpp:50
DicomDialogEntry::isSelected
bool isSelected()
Definition: DicomDialogEntry.cpp:38
DicomDialogEntry::selected
bool selected
Is this SERIES selected for opening?
Definition: DicomDialogEntry.h:105
DicomDialogEntry::acquisitionDate
QDate acquisitionDate
Acquisition date of the SERIES.
Definition: DicomDialogEntry.h:108
DicomDialogEntry::setPatientName
void setPatientName(QString name)
Definition: DicomDialogEntry.cpp:79
DicomDialogEntry
This class represents a line in the Dialog box of the DICOM series the user is prompted to open.
Definition: DicomDialogEntry.h:41
DicomDialogEntry::~DicomDialogEntry
virtual ~DicomDialogEntry()=default
Default Destructor.
DicomDialogEntry::getSeriesDescription
QString getSeriesDescription()
Definition: DicomDialogEntry.cpp:53
DicomDialogEntry::setStudyName
void setStudyName(QString name)
Definition: DicomDialogEntry.cpp:70
DicomDialogEntry::patientName
QString patientName
Name of the patient.
Definition: DicomDialogEntry.h:123
DicomDialogEntry::getAcquisitionTime
QTime getAcquisitionTime() const
Definition: DicomDialogEntry.cpp:44
DicomDialogEntry::numberOfItems
static int numberOfItems()
Get the number of item to display for the corresponding DicomTableWidgetItem class This is used to se...
Definition: DicomDialogEntry.h:97