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