]> Creatis software - cpPlugins.git/blobdiff - appli/ImageMPR/ImageMPR.cxx
MPR finished
[cpPlugins.git] / appli / ImageMPR / ImageMPR.cxx
index cf6a1f6b7934f353350ee9ee89f47c200e765157..5a9e414c9de2c584bfc5a5d88e4fd3168e15c49f 100644 (file)
@@ -75,10 +75,15 @@ UpdateActualFilter( )
     return;
 
   // Show outputs
-#error ACA VOY
   for( auto oIt = outputs.begin( ); oIt != outputs.end( ); ++oIt )
-    std::cout << *oIt << std::endl;
-  
+  {
+    std::string parent = this->m_Plugins.GetParent( *oIt );
+    TDataObject* dobj = this->m_Plugins.GetData< TDataObject >( *oIt );
+    this->m_UI->MPR->AddData( dobj, *oIt, parent );
+    this->m_UI->MPR->ShowData( *oIt );
+
+  } // rof
+
   /* TODO
      std::vector< std::string > outputs;
      std::string err = this->m_Plugins->UpdateActiveFilter( outputs );
@@ -168,6 +173,7 @@ _AssociatePluginsToMenu( )
       return;                                                           \
     TImage* image = this->m_Plugins.GetData< TImage >( name );          \
     this->m_UI->MPR->AddData( image, name, "" );                        \
+    this->m_UI->MPR->SetMainImage( name );                              \
     this->m_UI->MPR->ShowData( name );                                  \
   }                                                                     \
   catch( std::exception& err )                                          \