]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/ImageReader.h
682e8054ec575bb7dca632032f9141bff8c59ef7
[cpPlugins.git] / lib / cpPlugins / Plugins / ImageReader.h
1 #ifndef __CPPLUGINS__PLUGINS__IMAGEREADER__H__
2 #define __CPPLUGINS__PLUGINS__IMAGEREADER__H__
3
4 #include <vector>
5
6 #include <cpPlugins/Plugins/cpPlugins_Export.h>
7 #include <cpPlugins/Interface/ImageSource.h>
8
9 #define ITK_MANUAL_INSTANTIATION
10 #include <itkImageIOBase.h>
11
12 namespace cpPlugins
13 {
14   namespace Plugins
15   {
16     /**
17      */
18     class cpPlugins_EXPORT ImageReader
19       : public cpPlugins::Interface::ImageSource
20     {
21     public:
22       typedef ImageReader                       Self;
23       typedef cpPlugins::Interface::ImageSource Superclass;
24       typedef itk::SmartPointer< Self >         Pointer;
25       typedef itk::SmartPointer< const Self >   ConstPointer;
26
27       typedef
28         std::vector< cpPlugins::Interface::Parameters::TString >
29         TStringList;
30
31     public:
32       itkNewMacro( Self );
33       itkTypeMacro( ImageReader, cpPluginsInterfaceImageSource );
34
35     protected:
36       ImageReader( );
37       virtual ~ImageReader( );
38
39       virtual std::string _GenerateData( );
40
41       template< unsigned int D >
42         std::string _GD0( itk::ImageIOBase* io, const TStringList& names );
43
44       template< class P, unsigned int D >
45         std::string _RealGD( const TStringList& names );
46
47     private:
48       // Purposely not implemented
49       ImageReader( const Self& );
50       Self& operator=( const Self& );
51     };
52
53     // ---------------------------------------------------------------------
54     CPPLUGINS_INHERIT_PROVIDER( ImageReader );
55
56   } // ecapseman
57
58 } // ecapseman
59
60 #endif // __CPPLUGINS__PLUGINS__IMAGEREADER__H__
61
62 // eof - $RCSfile$