X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FVTK%2FImage%2FSkeletonToPolyDataFilter.h;fp=lib%2Ffpa%2FVTK%2FImage%2FSkeletonToPolyDataFilter.h;h=f34ae2eb6402c09d950aaf6e919ffc3042277ff2;hb=2047276c8f1a02432fbcc7014722d460d6c1e60f;hp=0000000000000000000000000000000000000000;hpb=3c639e5da479c7216a0a302ffa156ac6762caeed;p=FrontAlgorithms.git diff --git a/lib/fpa/VTK/Image/SkeletonToPolyDataFilter.h b/lib/fpa/VTK/Image/SkeletonToPolyDataFilter.h new file mode 100644 index 0000000..f34ae2e --- /dev/null +++ b/lib/fpa/VTK/Image/SkeletonToPolyDataFilter.h @@ -0,0 +1,71 @@ +// ========================================================================= +// @author Leonardo Florez Valencia +// @email florez-l@javeriana.edu.co +// ========================================================================= +#ifndef __fpa__VTK__Image__SkeletonToPolyDataFilter__h__ +#define __fpa__VTK__Image__SkeletonToPolyDataFilter__h__ + +#include + +namespace fpa +{ + namespace VTK + { + namespace Image + { + /** + */ + template< class _TSkeleton > + class SkeletonToPolyDataFilter + : public vtkPolyDataAlgorithm + { + public: + typedef SkeletonToPolyDataFilter Self; + typedef _TSkeleton TSkeleton; + + public: + vtkTypeMacro( SkeletonToPolyDataFilter, vtkPolyDataAlgorithm ); + + public: + static Self* New( ); + + const TSkeleton* GetInput( ) const; + void SetInput( const TSkeleton* sk ); + + protected: + SkeletonToPolyDataFilter( ); + virtual ~SkeletonToPolyDataFilter( ); + + int RequestData( + vtkInformation* information, + vtkInformationVector** input, + vtkInformationVector* output + ); + int RequestInformation( + vtkInformation* information, + vtkInformationVector** input, + vtkInformationVector* output + ); + + private: + // Purposely not implemented + SkeletonToPolyDataFilter( const Self& ); + void operator=( const Self& ); + + protected: + const TSkeleton* m_Skeleton; + }; + + } // ecapseman + + } // ecapseman + +} // ecapseman + +#ifndef ITK_MANUAL_INSTANTIATION +# include +#endif // ITK_MANUAL_INSTANTIATION + +#endif // __fpa__VTK__Image__SkeletonToPolyDataFilter__h__ + +// eof - $RCSfile$