]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Common/Image/PolyLineParametricPathWriter.h
...
[FrontAlgorithms.git] / lib / fpa / Common / Image / PolyLineParametricPathWriter.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__Common__Image__PolyLineParametricPathWriter__h__
6 #define __fpa__Common__Image__PolyLineParametricPathWriter__h__
7
8 #include <itkProcessObject.h>
9
10 namespace fpa
11 {
12   namespace Common
13   {
14     namespace Image
15     {
16       /**
17        */
18       template< class _TPath >
19       class PolyLineParametricPathWriter
20         : public itk::ProcessObject
21       {
22       public:
23         // Basic types
24         typedef PolyLineParametricPathWriter    Self;
25         typedef itk::ProcessObject              Superclass;
26         typedef itk::SmartPointer< Self >       Pointer;
27         typedef itk::SmartPointer< const Self > ConstPointer;
28
29         typedef _TPath TPath;
30
31       public:
32         itkNewMacro( Self );
33         itkTypeMacro( PolyLineParametricPathWriter, itk::ProcessObject );
34
35         itkGetConstMacro( FileName, std::string );
36         itkSetMacro( FileName, std::string );
37
38       public:
39         const TPath* GetInput( ) const;
40         void SetInput( const TPath* path );
41         virtual void Update( ) override;
42
43       protected:
44         PolyLineParametricPathWriter( );
45         virtual ~PolyLineParametricPathWriter( );
46
47         virtual void GenerateData( ) override;
48
49       private:
50         // Purposely not implemented
51         PolyLineParametricPathWriter( const Self& );
52         void operator=( const Self& );
53
54       protected:
55         std::string m_FileName;
56       };
57
58     } // ecapseman
59
60   } // ecapseman
61
62 } // ecapseman
63
64 #ifndef ITK_MANUAL_INSTANTIATION
65 #  include <fpa/Common/Image/PolyLineParametricPathWriter.hxx>
66 #endif // ITK_MANUAL_INSTANTIATION
67 #endif // __fpa__Common__Image__PolyLineParametricPathWriter__h__
68
69 // eof - $RCSfile$