1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__Common__Image__PathReader__h__
6 #define __fpa__Common__Image__PathReader__h__
8 #include <itkProcessObject.h>
18 template< class _TPath >
20 : public itk::ProcessObject
24 typedef PathReader Self;
25 typedef itk::ProcessObject Superclass;
26 typedef itk::SmartPointer< Self > Pointer;
27 typedef itk::SmartPointer< const Self > ConstPointer;
33 itkTypeMacro( PathReader, itk::ProcessObject );
35 itkGetConstMacro( FileName, std::string );
36 itkSetMacro( FileName, std::string );
40 TPath* GetOutput( unsigned int i );
42 virtual void GraftOutput( itk::DataObject* out );
43 virtual void GraftOutput(
44 const typename Superclass::DataObjectIdentifierType& key,
47 virtual void GraftNthOutput( unsigned int i, itk::DataObject* out );
48 virtual itk::DataObject::Pointer MakeOutput(
49 itk::ProcessObject::DataObjectPointerArraySizeType i
52 virtual void Update( ) override
53 { this->GenerateData( ); }
57 virtual ~PathReader( );
59 virtual void GenerateData( ) override;
62 virtual void GenerateOutputInformation( ) override
66 // Purposely not implemented
67 PathReader( const Self& );
68 void operator=( const Self& );
71 std::string m_FileName;
80 #ifndef ITK_MANUAL_INSTANTIATION
81 # include <fpa/Common/Image/PathReader.hxx>
82 #endif // ITK_MANUAL_INSTANTIATION
83 #endif // __fpa__Common__Image__PathReader__h__