QtDcmStudy.cpp
Go to the documentation of this file.
1 /*
2  QtDcm is a C++ Qt based library for communication and conversion of Dicom images.
3  Copyright (C) 2011 Alexandre Abadie <Alexandre.Abadie@univ-rennes1.fr>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Lesser General Public
7  License as published by the Free Software Foundation; either
8  version 2.1 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with this library; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19 
20 #include <QtDcmStudy.h>
21 #include <QtDcmSerie.h>
22 #include <QtDcmPatient.h>
23 
25 {
26 public:
27  QString id;
28  QString description;
29  QDate date;
30  QString time;
31  QList<QtDcmSerie> series;
33 };
34 
36 
38 {
39  delete d;
40 }
41 
42 QString QtDcmStudy::id() const
43 {
44  return d->id;
45 }
46 
47 void QtDcmStudy::setId ( const QString & id )
48 {
49  d->id = id;
50 }
51 
52 QString QtDcmStudy::description() const
53 {
54  return d->description;
55 }
56 
57 void QtDcmStudy::setDescription ( const QString & description )
58 {
60 }
61 
62 QDate QtDcmStudy::date() const
63 {
64  return d->date;
65 }
66 
67 void QtDcmStudy::setDate ( const QDate & date )
68 {
69  d->date = date;
70 }
71 
72 QString QtDcmStudy::time() const
73 {
74  return d->time;
75 }
76 
77 void QtDcmStudy::setTime ( const QString & time )
78 {
79  d->time = time;
80 }
81 
82 QList<QtDcmSerie> QtDcmStudy::series() const
83 {
84  return d->series;
85 }
86 
87 void QtDcmStudy::setSeries ( const QList<QtDcmSerie> & series )
88 {
89  d->series = series;
90 }
91 
93 {
94  return d->patient;
95 }
96 
98 {
99  d->patient = patient;
100 }
101 
102 void QtDcmStudy::addSerie ( const QtDcmSerie & serie )
103 {
104  d->series.append ( serie );
105 }
106 
107 void QtDcmStudy::removeSerie ( int index )
108 {
109  d->series.removeAt ( index );
110 }
This class is a representation of a dicom serie.
Definition: QtDcmSerie.h:34
void setTime(const QString &time)
Study time setter.
Definition: QtDcmStudy.cpp:77
QtDcmStudy()
Default constructor.
Definition: QtDcmStudy.cpp:35
QString description
Dicom study identificator.
Definition: QtDcmStudy.cpp:28
QtDcmPatient patient() const
Patient getter.
Definition: QtDcmStudy.cpp:92
QString description() const
Study description getter.
Definition: QtDcmStudy.cpp:52
void setId(const QString &id)
Study Id setter.
Definition: QtDcmStudy.cpp:47
void setDescription(const QString &description)
Study description setter.
Definition: QtDcmStudy.cpp:57
This class is a representation of a dicom patient.
Definition: QtDcmPatient.h:31
virtual ~QtDcmStudy()
Default destructor.
Definition: QtDcmStudy.cpp:37
QtDcmPatient patient
List of series in the study.
Definition: QtDcmStudy.cpp:32
QString time
Dicom study date.
Definition: QtDcmStudy.cpp:30
void removeSerie(int index)
Remove serie at position index.
Definition: QtDcmStudy.cpp:107
QString id() const
Study Id getter.
Definition: QtDcmStudy.cpp:42
QString time() const
Study time getter.
Definition: QtDcmStudy.cpp:72
void setPatient(const QtDcmPatient &patient)
Patient setter.
Definition: QtDcmStudy.cpp:97
void setDate(const QDate &date)
Study date setter.
Definition: QtDcmStudy.cpp:67
This class is representation of a Dicom study.
Definition: QtDcmStudy.h:33
QDate date
Dicom study description.
Definition: QtDcmStudy.cpp:29
QList< QtDcmSerie > series() const
List of series in the study getter.
Definition: QtDcmStudy.cpp:82
void addSerie(const QtDcmSerie &serie)
Add serie in the list.
Definition: QtDcmStudy.cpp:102
QList< QtDcmSerie > series
Dicom study time.
Definition: QtDcmStudy.cpp:31
QDate date() const
Study date getter.
Definition: QtDcmStudy.cpp:62
void setSeries(const QList< QtDcmSerie > &series)
List of series in the study setter.
Definition: QtDcmStudy.cpp:87