]> Creatis software - cpMesh.git/blob - lib/cpm/VTK/PolyDataToMeshFilter.h
First commit
[cpMesh.git] / lib / cpm / VTK / PolyDataToMeshFilter.h
1 #ifndef __CPM__VTK__POLYDATATOMESHFILTER__H__
2 #define __CPM__VTK__POLYDATATOMESHFILTER__H__
3
4 #include <itkMeshSource.h>
5 #include <vtkPolyData.h>
6
7 namespace cpm
8 {
9   namespace VTK
10   {
11     /**
12      */
13     template< class M >
14     class PolyDataToMeshFilter
15       : public itk::MeshSource< M >
16     {
17     public:
18       typedef PolyDataToMeshFilter            Self;
19       typedef itk::MeshSource< M >            Superclass;
20       typedef itk::SmartPointer< Self >       Pointer;
21       typedef itk::SmartPointer< const Self > ConstPointer;
22
23     public:
24       itkNewMacro( Self );
25       itkTypeMacro( PolyDataToMeshFilter, itkMeshSource );
26
27     public:
28       const vtkPolyData* GetInput( ) const;
29       void SetInput( const vtkPolyData* input );
30
31     protected:
32       PolyDataToMeshFilter( );
33       virtual ~PolyDataToMeshFilter( );
34
35       virtual void GenerateData( );
36
37     private:
38       // These methods aren't supposed to be implemented
39       PolyDataToMeshFilter( const Self& other );
40       Self& operator=( const Self& other );
41
42     protected:
43       const vtkPolyData* m_Input;
44     };
45
46   } // ecapseman
47
48 } // ecapseman
49
50 #include <cpm/VTK/PolyDataToMeshFilter.hxx>
51
52 #endif // __CPM__VTK__POLYDATATOMESHFILTER__H__
53
54 // eof - $RCSfile$