X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FCommon%2FImage%2FPathWriter.h;fp=lib%2Ffpa%2FCommon%2FImage%2FPathWriter.h;h=621161efda77a7d121173260243fbe11734d1bc2;hb=bd89a1af0c14ed2ac0afeca923103de54283cbaf;hp=0000000000000000000000000000000000000000;hpb=a8ac405fe1422bc0792a810f7f0693096a22c20e;p=FrontAlgorithms.git diff --git a/lib/fpa/Common/Image/PathWriter.h b/lib/fpa/Common/Image/PathWriter.h new file mode 100644 index 0000000..621161e --- /dev/null +++ b/lib/fpa/Common/Image/PathWriter.h @@ -0,0 +1,69 @@ +// ========================================================================= +// @author Leonardo Florez Valencia +// @email florez-l@javeriana.edu.co +// ========================================================================= +#ifndef __fpa__Common__Image__PathWriter__h__ +#define __fpa__Common__Image__PathWriter__h__ + +#include + +namespace fpa +{ + namespace Common + { + namespace Image + { + /** + */ + template< class _TPath > + class PathWriter + : public itk::ProcessObject + { + public: + // Basic types + typedef PathWriter Self; + typedef itk::ProcessObject Superclass; + typedef itk::SmartPointer< Self > Pointer; + typedef itk::SmartPointer< const Self > ConstPointer; + + typedef _TPath TPath; + + public: + itkNewMacro( Self ); + itkTypeMacro( PathWriter, itk::ProcessObject ); + + itkGetConstMacro( FileName, std::string ); + itkSetMacro( FileName, std::string ); + + public: + const TPath* GetInput( ) const; + void SetInput( const TPath* path ); + virtual void Update( ) override; + + protected: + PathWriter( ); + virtual ~PathWriter( ); + + virtual void GenerateData( ) override; + + private: + // Purposely not implemented + PathWriter( const Self& ); + void operator=( const Self& ); + + protected: + std::string m_FileName; + }; + + } // ecapseman + + } // ecapseman + +} // ecapseman + +#ifndef ITK_MANUAL_INSTANTIATION +# include +#endif // ITK_MANUAL_INSTANTIATION +#endif // __fpa__Common__Image__PathWriter__h__ + +// eof - $RCSfile$