QtDcmSerie.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 
21 #include <QtDcmImage.h>
22 #include <QtDcmStudy.h>
23 
24 #include <QtDcmSerie.h>
25 
27 {
28 public:
29  QString id;
30  QString description;
31  QString date;
32  QList<QtDcmImage> images;
34 };
35 
37 
39 {
40  delete d;
41 }
42 
43 QString QtDcmSerie::id() const
44 {
45  return d->id;
46 }
47 
48 void QtDcmSerie::setId (const QString &id)
49 {
50  d->id = id;
51 }
52 
53 QString QtDcmSerie::date() const
54 {
55  return d->date;
56 }
57 
58 void QtDcmSerie::setDate (const QString &date)
59 {
60  d->date = date;
61 }
62 
63 QString QtDcmSerie::description() const
64 {
65  return d->description;
66 }
67 
69 {
71 }
72 
73 QList<QtDcmImage> QtDcmSerie::images() const
74 {
75  return d->images;
76 }
77 
78 void QtDcmSerie::setImages ( const QList<QtDcmImage> & images )
79 {
80  d->images = images;
81 }
82 
84 {
85  return d->study;
86 }
87 
89 {
90  d->study = study;
91 }
92 
93 
This class is a representation of a dicom serie.
Definition: QtDcmSerie.h:34
QString id() const
Serie Id getter.
Definition: QtDcmSerie.cpp:43
QString description
Serie dicom identificator.
Definition: QtDcmSerie.cpp:30
QtDcmSerie()
Default constructor.
Definition: QtDcmSerie.cpp:36
void setId(const QString &id)
Serie Id setter.
Definition: QtDcmSerie.cpp:48
void setDescription(const QString &description)
Serie description setter.
Definition: QtDcmSerie.cpp:68
virtual ~QtDcmSerie()
Default destructor.
Definition: QtDcmSerie.cpp:38
QString date
Serie description.
Definition: QtDcmSerie.cpp:31
QString date() const
Serie date getter.
Definition: QtDcmSerie.cpp:53
QtDcmStudy study() const
Parent study getter.
Definition: QtDcmSerie.cpp:83
QString description() const
Serie description getter.
Definition: QtDcmSerie.cpp:63
void setImages(const QList< QtDcmImage > &images)
Image list setter.
Definition: QtDcmSerie.cpp:78
void setDate(const QString &date)
Serie date setter.
Definition: QtDcmSerie.cpp:58
void setStudy(const QtDcmStudy &study)
Parent study setter.
Definition: QtDcmSerie.cpp:88
QList< QtDcmImage > images
Study date.
Definition: QtDcmSerie.cpp:32
This class is representation of a Dicom study.
Definition: QtDcmStudy.h:33
QtDcmStudy study
List of images in the serie.
Definition: QtDcmSerie.cpp:33
QList< QtDcmImage > images() const
Image list getter.
Definition: QtDcmSerie.cpp:73