]> Creatis software - FrontAlgorithms.git/blobdiff - lib/fpa/Filters/Dijkstra.hxx
...
[FrontAlgorithms.git] / lib / fpa / Filters / Dijkstra.hxx
index 38ed1162e6dfd51dc536b97c8dd1b5b772d4fc0a..e065e74850a1f558229ce7d1f39fb8247b6d61fd 100644 (file)
@@ -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 >::