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() {
40 bool IsPatientCoordianteSystemChecked() { return mPatientCoordinateSystem; }
43 void BrowseButtonRelease();
44 void SearchButtonRelease();
45 void itemSelectionChanged();
46 void itemDetailsSelectionChanged();
47 void itemMatrixSelectionChanged(int state);
50 QString mPreviousPath;
52 void AddSerieToTheTable(int i, std::vector<std::string> & filenames);
53 #if GDCM_MAJOR_VERSION == 2
54 QString MakeDicomInfo(std::string & s, const gdcm::Reader& header);
56 QString MakeDicomInfo(std::string & s, gdcm::File *header);
58 QString AddInfo(const gdcm::File *header, QString n, unsigned short group, unsigned short elem);
59 QString AddInfo(std::string n, std::string m);
62 Ui::vvDicomSeriesSelector ui;
63 std::string mCurrentSerie;
64 std::map<std::string, std::vector<std::string>* > mListOfSeriesFilenames;
65 std::vector<std::string> * mFilenames;
66 std::map<std::string, QString> mDicomInfo;
67 #if GDCM_MAJOR_VERSION == 2
68 std::map<std::string, gdcm::Reader> mDicomHeader;
70 std::map<std::string, gdcm::File*> mDicomHeader;
72 std::map<std::string, std::string> mDicomDetails;
73 bool mPatientCoordinateSystem;
76 #endif // VVDICOMSERIESSELECTOR_H