X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FQT%2FDicomSeriesSelectorWidget.h;h=172d545746269e960902a6c51d45abd0748350c7;hb=c47085fea4e329aac217e38d402876d78c52ed5d;hp=b30df8e2cd83ec54bfd36e56ed13629a52442820;hpb=03d87a8f1acbcd697ca7a18a124fe3b659f7b045;p=cpPlugins.git diff --git a/lib/cpExtensions/QT/DicomSeriesSelectorWidget.h b/lib/cpExtensions/QT/DicomSeriesSelectorWidget.h index b30df8e..172d545 100644 --- a/lib/cpExtensions/QT/DicomSeriesSelectorWidget.h +++ b/lib/cpExtensions/QT/DicomSeriesSelectorWidget.h @@ -1,11 +1,12 @@ -#ifndef __CPEXTENSIONS__QT__DICOMSERIESSELECTORWIDGET__H__ -#define __CPEXTENSIONS__QT__DICOMSERIESSELECTORWIDGET__H__ +#ifndef __cpExtensions__QT__DicomSeriesSelectorWidget__H__ +#define __cpExtensions__QT__DicomSeriesSelectorWidget__H__ #include #ifdef cpExtensions_QT4 #include +#include // ------------------------------------------------------------------------- namespace Ui @@ -28,6 +29,27 @@ namespace cpExtensions public: typedef DicomSeriesSelectorWidget Self; + protected: + /** + */ + class _GDCMSerieHelper + : public gdcm::SerieHelper + { + public: + _GDCMSerieHelper( ) + { + } + virtual ~_GDCMSerieHelper( ) + { + } + template< class _TIt > + void SetFileNames( _TIt b, _TIt e ) + { + for( _TIt i = b; i != e; ++i ) + this->AddFileName( *i ); + } + }; + public: explicit DicomSeriesSelectorWidget( QWidget* parent = 0 ); virtual ~DicomSeriesSelectorWidget( ); @@ -35,13 +57,15 @@ namespace cpExtensions QString startDir( ) const; void setStartDir( const QString& dir, bool build = true ); - std::vector< std::string > selectedFilenames( ); + std::vector< std::string >* selectedFilenames( ); protected slots: void _Choose( ); protected: Ui::DicomSeriesSelectorWidget* m_UI; + _GDCMSerieHelper m_GDCMHelper; + std::map< std::string, std::vector< std::string > > m_Series; }; } // ecapseman @@ -50,6 +74,6 @@ namespace cpExtensions #endif // cpExtensions_QT4 -#endif // __CPEXTENSIONS__QT__DICOMSERIESSELECTORWIDGET__H__ +#endif // __cpExtensions__QT__DicomSeriesSelectorWidget__H__ // eof - $RCSfile$