From 266bf1ee8ffa4ffd8cc20c1c367fe1ca153b63f9 Mon Sep 17 00:00:00 2001 From: Leonardo Florez-Valencia Date: Wed, 18 Nov 2015 22:10:26 -0500 Subject: [PATCH] Machete filtered image: it is shown, but not yet over main image. --- appli/ImageMPR/ImageMPR.cxx | 11 ++++++++--- appli/ImageMPR/ImageMPR.h | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) 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; -- 2.47.1