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