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