]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/VTK/Image/PathToPolyDataFilter.h
...
[FrontAlgorithms.git] / lib / fpa / VTK / Image / PathToPolyDataFilter.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__VTK__Image__PathToPolyDataFilter__h__
6 #define __fpa__VTK__Image__PathToPolyDataFilter__h__
7
8 #include <vtkPolyDataAlgorithm.h>
9
10 namespace fpa
11 {
12   namespace VTK
13   {
14     namespace Image
15     {
16       /**
17        */
18       template< class _TPath >
19       class PathToPolyDataFilter
20         : public vtkPolyDataAlgorithm
21       {
22       public:
23         typedef PathToPolyDataFilter Self;
24         typedef _TPath               TPath;
25
26       public:
27         vtkTypeMacro( PathToPolyDataFilter, vtkPolyDataAlgorithm );
28
29       public:
30         static Self* New( );
31
32         const TPath* GetInput( ) const;
33         void SetInput( const TPath* path );
34
35       protected:
36         PathToPolyDataFilter( );
37         virtual ~PathToPolyDataFilter( );
38
39         int RequestData(
40           vtkInformation* information,
41           vtkInformationVector** input,
42           vtkInformationVector* output
43           );
44         int RequestInformation(
45           vtkInformation* information,
46           vtkInformationVector** input,
47           vtkInformationVector* output
48           );
49
50       private:
51         // Purposely not implemented
52         PathToPolyDataFilter( const Self& );
53         void operator=( const Self& );
54
55       protected:
56         const TPath* m_Path;
57       };
58
59     } // ecapseman
60
61   } // ecapseman
62
63 } // ecapseman
64
65 #ifndef ITK_MANUAL_INSTANTIATION
66 #  include <fpa/VTK/Image/PathToPolyDataFilter.hxx>
67 #endif // ITK_MANUAL_INSTANTIATION
68 #endif // __fpa__VTK__Image__PathToPolyDataFilter__h__
69
70 // eof - $RCSfile$