1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__Common__Image__SkeletonWriter__h__
6 #define __fpa__Common__Image__SkeletonWriter__h__
8 #include <itkProcessObject.h>
18 template< class _TSkeleton >
20 : public itk::ProcessObject
24 typedef SkeletonWriter Self;
25 typedef itk::ProcessObject Superclass;
26 typedef itk::SmartPointer< Self > Pointer;
27 typedef itk::SmartPointer< const Self > ConstPointer;
29 typedef _TSkeleton TSkeleton;
30 typedef typename TSkeleton::TEdges TEdges;
31 typedef typename TSkeleton::TMatrix TMatrix;
32 typedef typename TSkeleton::TMatrixRow TMatrixRow;
33 typedef typename TSkeleton::TPath TPath;
34 typedef typename TSkeleton::TVertex TVertex;
38 itkTypeMacro( SkeletonWriter, itk::ProcessObject );
40 itkGetConstMacro( FileName, std::string );
41 itkSetMacro( FileName, std::string );
44 const TSkeleton* GetInput( ) const;
45 void SetInput( const TSkeleton* skeleton );
46 virtual void Update( ) override;
50 virtual ~SkeletonWriter( );
52 virtual void GenerateData( ) override;
55 // Purposely not implemented
56 SkeletonWriter( const Self& );
57 void operator=( const Self& );
60 std::string m_FileName;
69 #ifndef ITK_MANUAL_INSTANTIATION
70 # include <fpa/Common/Image/SkeletonWriter.hxx>
71 #endif // ITK_MANUAL_INSTANTIATION
72 #endif // __fpa__Common__Image__SkeletonWriter__h__