1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
6 #ifndef __fpa__Image__SkeletonWriter__h__
7 #define __fpa__Image__SkeletonWriter__h__
9 #include <itkProcessObject.h>
17 template< class _TSkeleton >
19 : public itk::ProcessObject
23 typedef SkeletonWriter Self;
24 typedef itk::ProcessObject Superclass;
25 typedef itk::SmartPointer< Self > Pointer;
26 typedef itk::SmartPointer< const Self > ConstPointer;
28 typedef _TSkeleton TSkeleton;
29 typedef typename TSkeleton::TEdges TEdges;
30 typedef typename TSkeleton::TMatrix TMatrix;
31 typedef typename TSkeleton::TMatrixRow TMatrixRow;
32 typedef typename TSkeleton::TPath TPath;
33 typedef typename TSkeleton::TVertex TVertex;
37 itkTypeMacro( SkeletonWriter, itk::ProcessObject );
39 itkGetConstMacro( FileName, std::string );
40 itkSetMacro( FileName, std::string );
43 const TSkeleton* GetInput( ) const;
44 void SetInput( const TSkeleton* skeleton );
45 virtual void Update( ) override;
49 virtual ~SkeletonWriter( );
51 virtual void GenerateData( ) override;
54 // Purposely not implemented
55 SkeletonWriter( const Self& );
56 void operator=( const Self& );
59 std::string m_FileName;
66 #ifndef ITK_MANUAL_INSTANTIATION
67 # include <fpa/Image/SkeletonWriter.hxx>
68 #endif // ITK_MANUAL_INSTANTIATION
70 #endif // __fpa__Image__SkeletonWriter__h__