]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/IO/MinimumSpanningTreeReader.h
...
[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 _TTree >
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 _TTree 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       _TTree* GetOutput( );
34       virtual void Update( ) ITK_OVERRIDE;
35
36     protected:
37       MinimumSpanningTreeReader( );
38       virtual ~MinimumSpanningTreeReader( );
39
40       virtual void GenerateData( ) ITK_OVERRIDE;
41
42     private:
43       // Purposely not implemented
44       MinimumSpanningTreeReader( const Self& other );
45       Self& operator=( const Self& other );
46
47     protected:
48       std::string m_FileName;
49     };
50
51   } // ecapseman
52
53 } // ecapseman
54
55 #ifndef ITK_MANUAL_INSTANTIATION
56 #include <fpa/IO/MinimumSpanningTreeReader.hxx>
57 #endif // ITK_MANUAL_INSTANTIATION
58
59 #endif // __FPA__IO__MINIMUMSPANNINGTREEREADER__H__
60
61 // eof - $RCSfile$