1 // -------------------------------------------------------------------------
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // -------------------------------------------------------------------------
5 #ifndef __cpExtensions__Algorithms__PolyLineParametricPathWriter__h__
6 #define __cpExtensions__Algorithms__PolyLineParametricPathWriter__h__
8 #include <itkProcessObject.h>
10 // -------------------------------------------------------------------------
11 namespace cpExtensions
17 template< class _TPolyLine >
18 class PolyLineParametricPathWriter
19 : public itk::ProcessObject
23 typedef PolyLineParametricPathWriter Self;
24 typedef itk::ProcessObject Superclass;
25 typedef itk::SmartPointer< Self > Pointer;
26 typedef itk::SmartPointer< const Self > ConstPointer;
30 itkTypeMacro( PolyLineParametricPathWriter, itk::ProcessObject );
32 itkGetConstMacro( FileName, std::string );
33 itkGetConstMacro( NumberOfPoints, long );
35 itkSetMacro( FileName, std::string );
36 itkSetMacro( NumberOfPoints, long );
39 void SetInput( const _TPolyLine* input );
40 const _TPolyLine* GetInput( );
41 virtual void Update( );
44 PolyLineParametricPathWriter( );
45 virtual ~PolyLineParametricPathWriter( );
47 virtual void GenerateData( ) override;
50 // Purposely not implemented
51 PolyLineParametricPathWriter( const Self& );
52 void operator=( const Self& );
55 std::string m_FileName;
56 long m_NumberOfPoints;
63 #ifndef ITK_MANUAL_INSTANTIATION
64 # include <cpExtensions/Algorithms/PolyLineParametricPathWriter.hxx>
65 #endif // ITK_MANUAL_INSTANTIATION
67 #endif // __cpExtensions__Algorithms__PolyLineParametricPathWriter__h__