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