]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/ImageReader.h
6110c928f276cdfee78234b139ebcebea20298d6
[cpPlugins.git] / lib / cpPlugins / Plugins / ImageReader.h
1 #ifndef __CPPLUGINS__PLUGINS__IMAGEREADER__H__
2 #define __CPPLUGINS__PLUGINS__IMAGEREADER__H__
3
4 #include <cpPlugins/Interface/SourceObject.h>
5 #include <itkProcessObject.h>
6
7 namespace cpPlugins
8 {
9   namespace Plugins
10   {
11     /**
12      */
13     class ImageReader
14       : public cpPlugins::Interface::SourceObject
15     {
16     public:
17       typedef ImageReader                        Self;
18       typedef cpPlugins::Interface::SourceObject Superclass;
19
20       typedef Superclass::TParameter  TParameter;
21       typedef Superclass::TParameters TParameters;
22
23     public:
24       ImageReader( );
25       virtual ~ImageReader( );
26
27       virtual std::string GetClassName( ) const;
28
29     protected:
30
31       virtual bool _GenerateData( );
32
33       template< unsigned int D >
34       bool _GenerateData0( );
35
36       template< class P, unsigned int D >
37       bool _GenerateData1( );
38
39     protected:
40       itk::ProcessObject::Pointer m_Reader;
41     };
42
43     // ---------------------------------------------------------------------
44     PLUMA_INHERIT_PROVIDER( ImageReader, cpPlugins::Interface::Object );
45
46   } // ecapseman
47
48 } // ecapseman
49
50 #endif // __CPPLUGINS__PLUGINS__IMAGEREADER__H__
51
52 // eof - $RCSfile$