X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Ffpa%2FFilters%2FDijkstra.hxx;fp=lib%2Ffpa%2FFilters%2FDijkstra.hxx;h=e065e74850a1f558229ce7d1f39fb8247b6d61fd;hb=adba0941ad4b140ffd4396da4cac103fc98fa7b6;hp=38ed1162e6dfd51dc536b97c8dd1b5b772d4fc0a;hpb=fb178e69a1a632a11779ca17a44d2f31b9fd9661;p=FrontAlgorithms.git diff --git a/lib/fpa/Filters/Dijkstra.hxx b/lib/fpa/Filters/Dijkstra.hxx index 38ed116..e065e74 100644 --- a/lib/fpa/Filters/Dijkstra.hxx +++ b/lib/fpa/Filters/Dijkstra.hxx @@ -20,6 +20,20 @@ fpa::Filters::Dijkstra< _TDataInterface, _TMST >:: { } +// ------------------------------------------------------------------------- +template< class _TDataInterface, class _TMST > +void fpa::Filters::Dijkstra< _TDataInterface, _TMST >:: +_AfterGenerateData( ) +{ + this->Superclass::_AfterGenerateData( ); + + TMST* mst = this->GetMinimumSpanningTree( ); + mst->ClearSeeds( ); + mst->SetCollisions( this->m_Collisions ); + for( TNode seed: this->GetSeeds( ) ) + mst->AddSeed( seed.Vertex, seed.FrontId ); +} + // ------------------------------------------------------------------------- template< class _TDataInterface, class _TMST > void fpa::Filters::Dijkstra< _TDataInterface, _TMST >::