]> Creatis software - FrontAlgorithms.git/blob - lib/fpa/Filters/Dijkstra.h
...
[FrontAlgorithms.git] / lib / fpa / Filters / Dijkstra.h
1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__Filters__Dijkstra__h__
6 #define __fpa__Filters__Dijkstra__h__
7
8 #include <fpa/Filters/DijkstraBase.h>
9
10 namespace fpa
11 {
12   namespace Filters
13   {
14     /**
15      */
16     template< class _TTraits, class _TMST >
17     class Dijkstra
18       : public fpa::Filters::DijkstraBase< _TTraits >
19     {
20     public:
21       typedef _TTraits TTraits;
22       typedef _TMST    TMST;
23       fpaTraitsMacro( typename, TTraits );
24
25       typedef fpa::Filters::DijkstraBase< _TTraits > Superclass;
26       typedef Dijkstra                               Self;
27       typedef itk::SmartPointer< Self >              Pointer;
28       typedef itk::SmartPointer< const Self >        ConstPointer;
29
30       typedef typename Superclass::TScalarWeight TScalarWeight;
31       typedef typename Superclass::TVertexWeight TVertexWeight;
32
33     public:
34       itkTypeMacro( fpa::Filters::Dijkstra, fpa::Filters::DijkstraBase );
35
36       fpaFilterOutputMacro( MinimumSpanningTree, TMST );
37
38
39     protected:
40       Dijkstra( );
41       virtual ~Dijkstra( );
42
43       virtual void _AfterGenerateData( ) override;
44       virtual void _UpdateOutputValue( TNode& n ) override;
45
46     private:
47       // Purposely not implemented.
48       Dijkstra( const Self& other );
49       Self& operator=( const Self& other );
50
51     protected:
52       unsigned int m_MinimumSpanningTreeIdx;
53     };
54
55   } // ecapseman
56
57 } // ecapseman
58
59 #ifndef ITK_MANUAL_INSTANTIATION
60 #  include <fpa/Filters/Dijkstra.hxx>
61 #endif // ITK_MANUAL_INSTANTIATION
62
63 #endif // __fpa__Filters__Dijkstra__h__
64 // eof - $RCSfile$