QtDcmImage.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 
22 #include <QtDcmSerie.h>
23 #include <QtDcmImage.h>
24 
26 {
27 public:
28  QString id;
29  QString filename;
31 };
32 
34 
36 {
37  delete d;
38 }
39 
40 QString QtDcmImage::id() const
41 {
42  return d->id;
43 }
44 
45 void QtDcmImage::setId( const QString & id )
46 {
47  d->id = id;
48 }
49 
50 QString QtDcmImage::filename() const
51 {
52  return d->filename;
53 }
54 
55 void QtDcmImage::setFilename( const QString & filename )
56 {
57  d->filename = filename;
58 }
59 
61 {
62  return d->serie;
63 }
64 
66 {
67  d->serie = serie;
68 }
This class is a representation of a dicom serie.
Definition: QtDcmSerie.h:34
QString id() const
Id getter.
Definition: QtDcmImage.cpp:40
virtual ~QtDcmImage()
Default destructor.
Definition: QtDcmImage.cpp:35
QtDcmSerie serie() const
Parent serie getter.
Definition: QtDcmImage.cpp:60
QString filename
Dicom ID of the image.
Definition: QtDcmImage.cpp:29
QtDcmSerie serie
Filename path of the dicom image.
Definition: QtDcmImage.cpp:30
void setFilename(const QString &filename)
Image filename setter.
Definition: QtDcmImage.cpp:55
QString filename() const
Image filename getter.
Definition: QtDcmImage.cpp:50
This class is a representation of a dicom image.
Definition: QtDcmImage.h:33
QtDcmImage()
Default constructor.
Definition: QtDcmImage.cpp:33
void setSerie(const QtDcmSerie &serie)
Parent serie setter.
Definition: QtDcmImage.cpp:65
void setId(const QString &id)
Id setter.
Definition: QtDcmImage.cpp:45