]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/IO/ImageWriter.h
Generic MPR+Plugins application base updated.
[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       cpPlugins_Id_Macro(
26         cpPlugins::IO::ImageWriter, "ImageWriter"
27         );
28
29     public:
30       virtual bool ExecConfigurationDialog( QWidget* parent );
31
32     protected:
33       ImageWriter( );
34       virtual ~ImageWriter( );
35
36       virtual std::string _GenerateData( );
37
38       /*
39        * These two methods are Microsort courtesy: inner loop error !
40        */
41       template< unsigned int D >
42         inline std::string _GD0_Image( );
43
44       template< unsigned int D >
45         inline std::string _GD0_VectorImage( );
46
47       template< class I >
48         inline std::string _RealGD( itk::DataObject* image );
49
50     private:
51       // Purposely not implemented
52       ImageWriter( const Self& );
53       Self& operator=( const Self& );
54     };
55
56     // ---------------------------------------------------------------------
57     CPPLUGINS_INHERIT_PROVIDER( ImageWriter );
58
59   } // ecapseman
60
61 } // ecapseman
62
63 #endif // __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
64
65 // eof - $RCSfile$