]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/IO/MinimumSpanningTreeWriter.h
c3465fa70d534f35d41eb1ee08488464f785452e
[FrontAlgorithms.git] / lib / fpa / IO / MinimumSpanningTreeWriter.h
1 #ifndef __FPA__IO__MINIMUMSPANNINGTREEWRITER__H__
2 #define __FPA__IO__MINIMUMSPANNINGTREEWRITER__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 MinimumSpanningTreeWriter
15       : public itk::ProcessObject
16     {
17     public:
18       typedef MinimumSpanningTreeWriter       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( MinimumSpanningTreeWriter, itkProcessObject );
28
29       itkGetConstMacro( FileName, std::string );
30       itkSetMacro( FileName, std::string );
31
32     public:
33       void SetInput( const _TTree* input );
34       _TTree* GetInput( );
35       const _TTree* GetInput( ) const;
36       virtual void Update( );
37
38     protected:
39       MinimumSpanningTreeWriter( );
40       virtual ~MinimumSpanningTreeWriter( );
41
42       virtual void GenerateData( );
43
44     private:
45       // Purposely not implemented
46       MinimumSpanningTreeWriter( const Self& other );
47       Self& operator=( const Self& other );
48
49     protected:
50       std::string m_FileName;
51     };
52
53   } // ecapseman
54
55 } // ecapseman
56
57 #ifndef ITK_MANUAL_INSTANTIATION
58 #include <fpa/IO/MinimumSpanningTreeWriter.hxx>
59 #endif // ITK_MANUAL_INSTANTIATION
60
61 #endif // __FPA__IO__MINIMUMSPANNINGTREEWRITER__H__
62
63 // eof - $RCSfile$