1 // =========================================================================
2 // @author Leonardo Florez Valencia
3 // @email florez-l@javeriana.edu.co
4 // =========================================================================
5 #ifndef __fpa__Filters__Dijkstra__hxx__
6 #define __fpa__Filters__Dijkstra__hxx__
8 // -------------------------------------------------------------------------
9 template< class _TDataInterface, class _TMST >
10 fpa::Filters::Dijkstra< _TDataInterface, _TMST >::
13 fpaFilterOutputConfigureMacro( MinimumSpanningTree, TMST );
16 // -------------------------------------------------------------------------
17 template< class _TDataInterface, class _TMST >
18 fpa::Filters::Dijkstra< _TDataInterface, _TMST >::
23 // -------------------------------------------------------------------------
24 template< class _TDataInterface, class _TMST >
25 void fpa::Filters::Dijkstra< _TDataInterface, _TMST >::
28 this->Superclass::_AfterGenerateData( );
30 TMST* mst = this->GetMinimumSpanningTree( );
32 mst->SetCollisions( this->m_Collisions );
33 for( TNode seed: this->GetSeeds( ) )
34 mst->AddSeed( seed.Vertex, seed.FrontId );
37 // -------------------------------------------------------------------------
38 template< class _TDataInterface, class _TMST >
39 void fpa::Filters::Dijkstra< _TDataInterface, _TMST >::
40 _PostComputeOutputValue( TNode& n )
42 this->Superclass::_PostComputeOutputValue( n );
43 this->GetMinimumSpanningTree( )->SetParent( n.Vertex, n.Parent );
46 #endif // __fpa__Filters__Dijkstra__hxx__