Computer Assited Medical Intervention Tool Kit  version 4.1
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-2018 Univ. Grenoble Alpes, CNRS, TIMC-IMAG UMR 5525 (GMCAO)
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 getSerieName();
57  QString getSerieDescription();
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 setSerieDescription(QString name);
68  void setSerieName(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 
86 
89 
91  QString studyName;
92 
94  QString serieName;
95 
98 
100  QString patientName;
101 
102 
103 };
104 
105 #endif // DICOMDIALOGENTRY_H
106 
bool selected
Is this SERIES selected for opening?
Definition: DicomDialogEntry.h:82
QString getSerieDescription()
Definition: DicomDialogEntry.cpp:53
QString serieName
Name of this SERIES.
Definition: DicomDialogEntry.h:94
void setAcquisitionTime(QTime time)
Definition: DicomDialogEntry.cpp:68
QString getSerieName()
Definition: DicomDialogEntry.cpp:50
void setStudyName(QString name)
Definition: DicomDialogEntry.cpp:71
bool isSelected()
Definition: DicomDialogEntry.cpp:38
static int numberOfItems()
Get the number of item to display for the corresponding DicomTableWidgetItem class This is used to se...
Definition: DicomDialogEntry.h:74
This class represents a line in the Dialog box of the DICOM series the user is prompted to open...
Definition: DicomDialogEntry.h:41
QDate acquisitionDate
Acquisition date of the SERIES.
Definition: DicomDialogEntry.h:85
void setSerieDescription(QString name)
Definition: DicomDialogEntry.cpp:77
QTime getAcquisitionTime() const
Definition: DicomDialogEntry.cpp:44
void setPatientName(QString name)
Definition: DicomDialogEntry.cpp:80
QString serieDescription
Description of this SERIES.
Definition: DicomDialogEntry.h:97
void setSelected(bool value)
Definition: DicomDialogEntry.cpp:62
QString studyName
Name of the STUDY this SERIES belongs to.
Definition: DicomDialogEntry.h:91
virtual ~DicomDialogEntry()=default
Default Destructor.
QString patientName
Name of the patient.
Definition: DicomDialogEntry.h:100
QString getPatientName()
Definition: DicomDialogEntry.cpp:56
QDate getAcquisitionDate()
Definition: DicomDialogEntry.cpp:41
void setSerieName(QString name)
Definition: DicomDialogEntry.cpp:74
DicomDialogEntry()
Definition: DicomDialogEntry.cpp:30
void setAcquisitionDate(QDate date)
Definition: DicomDialogEntry.cpp:65
QTime acquisitionTime
Acquisition time of the SERIES.
Definition: DicomDialogEntry.h:88
QString getStudyName()
Definition: DicomDialogEntry.cpp:47