]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/IO/ImageReader.h
Kind of bored: graph editor debugged
[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 Superclass::TParameters TParameters;
30       typedef std::vector< TParameters::TString > TStringList;
31
32     public:
33       itkNewMacro( Self );
34       itkTypeMacro( ImageReader, cpPluginsInterfaceImageSource );
35       cpPlugins_Id_Macro( cpPlugins::IO::ImageReader, "IO" );
36
37     public:
38       virtual DialogResult ExecConfigurationDialog( QWidget* parent );
39
40     protected:
41       ImageReader( );
42       virtual ~ImageReader( );
43
44       virtual std::string _GenerateData( );
45
46       template< unsigned int D >
47         std::string _GD0( itk::ImageIOBase* io, const TStringList& names );
48
49       template< class P, unsigned int D >
50         std::string _GD1( const TStringList& names );
51
52       template< class I >
53         std::string _RealGD( const TStringList& names );
54
55     private:
56       // Purposely not implemented
57       ImageReader( const Self& );
58       Self& operator=( const Self& );
59     };
60
61     // ---------------------------------------------------------------------
62     CPPLUGINS_INHERIT_PROVIDER( ImageReader );
63
64   } // ecapseman
65
66 } // ecapseman
67
68 #endif // __CPPLUGINS__PLUGINS__IMAGEREADER__H__
69
70 // eof - $RCSfile$