]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/IO/ImageReader.h
Widget integration (step 5/6): generic widget controller finished and tested on linux...
[cpPlugins.git] / lib / cpPlugins / Plugins / IO / ImageReader.h
1 #ifndef __CPPLUGINS__PLUGINS__IMAGEREADER__H__
2 #define __CPPLUGINS__PLUGINS__IMAGEREADER__H__
3
4 #include <vector>
5
6 #include <cpPlugins/IO/cpPluginsIO_Export.h>
7 #include <cpPlugins/Interface/BaseProcessObjects.h>
8
9 namespace itk
10 {
11   class ImageIOBase;
12 }
13
14 namespace cpPlugins
15 {
16   namespace IO
17   {
18     /**
19      */
20     class cpPluginsIO_EXPORT ImageReader
21       : public cpPlugins::Interface::ImageSource
22     {
23     public:
24       typedef ImageReader                       Self;
25       typedef cpPlugins::Interface::ImageSource Superclass;
26       typedef itk::SmartPointer< Self >         Pointer;
27       typedef itk::SmartPointer< const Self >   ConstPointer;
28
29       typedef
30         std::vector< cpPlugins::Interface::Parameters::TString >
31         TStringList;
32
33     public:
34       itkNewMacro( Self );
35       itkTypeMacro( ImageReader, cpPluginsInterfaceImageSource );
36       cpPlugins_Id_Macro(
37         cpPlugins::IO::ImageReader, "ImageReader"
38         );
39
40     public:
41       virtual bool ExecConfigurationDialog( QWidget* parent );
42
43     protected:
44       ImageReader( );
45       virtual ~ImageReader( );
46
47       virtual std::string _GenerateData( );
48
49       template< unsigned int D >
50         std::string _GD0( itk::ImageIOBase* io, const TStringList& names );
51
52       template< class P, unsigned int D >
53         std::string _GD1( const TStringList& names );
54
55       template< class I >
56         std::string _RealGD( const TStringList& names );
57
58     private:
59       // Purposely not implemented
60       ImageReader( const Self& );
61       Self& operator=( const Self& );
62     };
63
64     // ---------------------------------------------------------------------
65     CPPLUGINS_INHERIT_PROVIDER( ImageReader );
66
67   } // ecapseman
68
69 } // ecapseman
70
71 #endif // __CPPLUGINS__PLUGINS__IMAGEREADER__H__
72
73 // eof - $RCSfile$