]> Creatis software - cpPlugins.git/commitdiff
Machete filtered image: it is shown, but not yet over main image.
authorLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Thu, 19 Nov 2015 03:10:26 +0000 (22:10 -0500)
committerLeonardo Florez-Valencia <florez-l@javeriana.edu.co>
Thu, 19 Nov 2015 03:10:26 +0000 (22:10 -0500)
appli/ImageMPR/ImageMPR.cxx
appli/ImageMPR/ImageMPR.h

index cf6a1f6b7934f353350ee9ee89f47c200e765157..c18fcd24fad447bd2d4c5fd23f49fd1d826ec4fa 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 );
index e11ec5ddc71ca6261548cbbd880f423f8c926bb5..1302006a7500b9d620a3e4a426b4ed7e08897be2 100644 (file)
@@ -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;