From: Leonardo Florez-Valencia Date: Thu, 19 Nov 2015 03:10:26 +0000 (-0500) Subject: Machete filtered image: it is shown, but not yet over main image. X-Git-Tag: v0.1~296^2 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=266bf1ee8ffa4ffd8cc20c1c367fe1ca153b63f9;p=cpPlugins.git Machete filtered image: it is shown, but not yet over main image. --- diff --git a/appli/ImageMPR/ImageMPR.cxx b/appli/ImageMPR/ImageMPR.cxx index cf6a1f6..c18fcd2 100644 --- a/appli/ImageMPR/ImageMPR.cxx +++ b/appli/ImageMPR/ImageMPR.cxx @@ -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 ); diff --git a/appli/ImageMPR/ImageMPR.h b/appli/ImageMPR/ImageMPR.h index e11ec5d..1302006 100644 --- a/appli/ImageMPR/ImageMPR.h +++ b/appli/ImageMPR/ImageMPR.h @@ -120,6 +120,7 @@ public: typedef cpExtensions::Visualization::MPRObjects TMPRObjects; typedef cpPlugins::Interface::Plugins TPlugins; + typedef cpPlugins::Interface::DataObject TDataObject; typedef cpPlugins::Interface::Image TImage; typedef cpPlugins::Interface::Mesh TMesh; @@ -127,7 +128,6 @@ public: /* typedef cpPlugins::Interface::Interface TPluginsInterface; typedef cpPlugins::Interface::Object TPluginObject; - typedef cpPlugins::Interface::DataObject TPluginData; typedef cpPlugins::Interface::Image TPluginImage; typedef cpPlugins::Interface::ImplicitFunction TPluginImplicitFunction; typedef cpPlugins::Interface::Mesh TPluginMesh;