]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Plugins/ImageWriter.h
Installation and configuration scripts added
[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/SinkObject.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::SinkObject
16     {
17     public:
18       typedef ImageWriter                      Self;
19       typedef cpPlugins::Interface::SinkObject Superclass;
20
21       typedef Superclass::TParameter  TParameter;
22       typedef Superclass::TParameters TParameters;
23
24     public:
25       ImageWriter( );
26       virtual ~ImageWriter( );
27
28       virtual std::string GetClassName( ) const;
29
30     protected:
31       virtual std::string _GenerateData( );
32
33       template< unsigned int D >
34       std::string _GenerateData0( );
35
36       template< class P, unsigned int D >
37       std::string _GenerateData1( );
38
39     protected:
40       itk::ProcessObject::Pointer m_Writer;
41     };
42
43     // ---------------------------------------------------------------------
44     PLUMA_INHERIT_PROVIDER( ImageWriter, cpPlugins::Interface::Object );
45
46   } // ecapseman
47
48 } // ecapseman
49
50 #endif // __CPPLUGINS__PLUGINS__IMAGEWRITER__H__
51
52 // eof - $RCSfile$