1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
5 - University of LYON http://www.universite-lyon.fr/
6 - Léon Bérard cancer center http://www.centreleonberard.fr
7 - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the copyright notices for more information.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18 #ifndef VVDICOMSERIESSELECTOR_H
19 #define VVDICOMSERIESSELECTOR_H
20 #include "ui_vvDicomSeriesSelector.h"
21 #include "clitkCommon.h"
22 #include "vvQProgressDialogITKCommand.h"
24 namespace gdcm {class File;}
28 #include <QFileDialog>
30 class vvDicomSeriesSelector : public QDialog {
34 vvDicomSeriesSelector(QWidget * parent=0);
37 std::vector<std::string> * GetFilenames() {
42 void BrowseButtonRelease();
43 void SearchButtonRelease();
44 void itemSelectionChanged();
45 void itemDetailsSelectionChanged();
48 QString mPreviousPath;
50 void AddSerieToTheTable(int i, std::vector<std::string> & filenames);
51 #if GDCM_MAJOR_VERSION == 2
52 QString MakeDicomInfo(std::string & s, const gdcm::Reader& header);
54 QString MakeDicomInfo(std::string & s, gdcm::File *header);
56 QString AddInfo(const gdcm::File *header, QString n, unsigned short group, unsigned short elem);
57 QString AddInfo(std::string n, std::string m);
60 Ui::vvDicomSeriesSelector ui;
61 std::string mCurrentSerie;
62 std::map<std::string, std::vector<std::string>* > mListOfSeriesFilenames;
63 std::vector<std::string> * mFilenames;
64 std::map<std::string, QString> mDicomInfo;
65 #if GDCM_MAJOR_VERSION == 2
66 std::map<std::string, gdcm::Reader> mDicomHeader;
68 std::map<std::string, gdcm::File*> mDicomHeader;
70 std::map<std::string, std::string> mDicomDetails;
73 #endif // VVDICOMSERIESSELECTOR_H