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