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://oncora1.lyon.fnclcc.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 QString MakeDicomInfo(std::string & s, gdcm::File *header);
52 QString AddInfo(gdcm::File *header, QString n, unsigned short group, unsigned short elem);
53 QString AddInfo(std::string n, std::string m);
56 Ui::vvDicomSeriesSelector ui;
57 std::string mCurrentSerie;
58 std::map<std::string, std::vector<std::string>* > mListOfSeriesFilenames;
59 std::vector<std::string> * mFilenames;
60 std::map<std::string, QString> mDicomInfo;
61 std::map<std::string, gdcm::File*> mDicomHeader;
62 std::map<std::string, std::string> mDicomDetails;
65 #endif // VVDICOMSERIESSELECTOR_H