Biomedical Image Analysis Library
The Biomedical Image Analysis Library is a poweful tool for developers, physicians, researchers, engineers, and so on.
dicomdir.h
Go to the documentation of this file.
1 /* Biomedical Image Analysis Library
2  * See README file in the root instalation directory for more information.
3  */
4 
16 #include "Common.hpp"
17 
18 #include <QDir>
19 #include <QDir>
20 #include <QFile>
21 #include <QFileInfo>
22 
23 #ifndef DICOMDIR_H
24 #define DICOMDIR_H
25 class ImageInfo {
26  QString uid;
27  QString referencedFileID;
28  QDir dir;
29 
30 public:
31  ImageInfo( );
32  QString getUid( ) const;
33  void setUid( const QString &value );
34  QString getReferencedFileID( ) const;
35  void setReferencedFileID( const QString &value );
36  QDir getDir( ) const;
37  void setDir( const QDir &value );
38  QString getFileName( );
39 };
40 class Series {
41  std::vector< ImageInfo > images;
42  QString uid;
43  QString modality;
44  QString descr;
45 
46 public:
47  void addImage( const ImageInfo &imageInfo );
48  QString getUid( ) const;
49  void setUid( const QString &value );
50  QString getModality( ) const;
51  void setModality( const QString &value );
52  QString getDescr( ) const;
53  void setDescr( const QString &value );
54  QStringList getImages( );
55 };
56 class Study {
57  std::vector< Series > series;
58  QString uid;
59  QString date;
60  QString descr;
61 
62 public:
63  void addSeries( const Series &s );
64  QString getUid( ) const;
65  void setUid( const QString &value );
66  QString getDate( ) const;
67  void setDate( const QString &value );
68  QString getDescr( ) const;
69  void setDescr( const QString &value );
70  QStringList getImages( );
71 };
72 class Patient {
73  std::vector< Study > study;
74  QString name;
75  QString id;
76 
77 public:
78  void addStudy( const Study &s );
79  QString getName( ) const;
80  void setName( const QString &value );
81  QString getId( ) const;
82  void setId( const QString &value );
83  QStringList getImages( );
84 };
85 class DicomDir {
86  std::vector< Patient > patient;
87  QString filename;
88  QString title;
89  QString dir;
90 
91 public:
92  DicomDir( );
93  bool open( const QString &filename );
94  QString getTitle( ) const;
95  void setTitle( const QString &value );
96  QString getFilename( ) const;
97  QStringList getImages( );
98 };
99 
100 #endif /* DICOMDIR_H */
QString getFileName()
Definition: dicomdir.cpp:18
QDir getDir() const
Definition: dicomdir.cpp:10
void setDir(const QDir &value)
Definition: dicomdir.cpp:14
Content: Commonly used macros, types, static variables and functions. Description: Some macros used...
QString getUid() const
Definition: dicomdir.cpp:54
void setUid(const QString &value)
Definition: dicomdir.cpp:58
Definition: dicomdir.h:56
QString getReferencedFileID() const
Definition: dicomdir.cpp:46
void setReferencedFileID(const QString &value)
Definition: dicomdir.cpp:50