]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/IO/MinimumSpanningTreeReader.h
Skeletonization ready to use
[FrontAlgorithms.git] / lib / fpa / IO / MinimumSpanningTreeReader.h
1 #ifndef __FPA__IO__MINIMUMSPANNINGTREEREADER__H__
2 #define __FPA__IO__MINIMUMSPANNINGTREEREADER__H__
3
4 #include <string>
5 #include <itkProcessObject.h>
6
7 namespace fpa
8 {
9   namespace IO
10   {
11     /**
12      */
13     template< class T >
14     class MinimumSpanningTreeReader
15       : public itk::ProcessObject
16     {
17     public:
18       typedef MinimumSpanningTreeReader       Self;
19       typedef itk::ProcessObject              Superclass;
20       typedef itk::SmartPointer< Self >       Pointer;
21       typedef itk::SmartPointer< const Self > ConstPointer;
22
23       typedef T TTree;
24
25     public:
26       itkNewMacro( Self );
27       itkTypeMacro( MinimumSpanningTreeReader, itkProcessObject );
28
29       itkGetConstMacro( FileName, std::string );
30       itkSetMacro( FileName, std::string );
31
32     public:
33       T* GetOutput( );
34
35       virtual void Update( );
36
37     protected:
38       MinimumSpanningTreeReader( );
39       virtual ~MinimumSpanningTreeReader( );
40
41       virtual void GenerateData( );
42
43     private:
44       // Purposely not implemented
45       MinimumSpanningTreeReader( const Self& other );
46       Self& operator=( const Self& other );
47
48     protected:
49       std::string m_FileName;
50     };
51
52   } // ecapseman
53
54 } // ecapseman
55
56 #include <fpa/IO/MinimumSpanningTreeReader.hxx>
57
58 #endif // __FPA__IO__MINIMUMSPANNINGTREEREADER__H__
59
60 // eof - $RCSfile$