]> Creatis software - cpPlugins.git/blobdiff - appli/PipelineEditor/PipelineEditor.cxx
...
[cpPlugins.git] / appli / PipelineEditor / PipelineEditor.cxx
index 0f2d3fde2d6d5cf1efc60b1010b0f7ce59f01a2e..b61cd14cbc5155b9c2e830ac8b5a6b216893d3af 100644 (file)
@@ -123,20 +123,20 @@ _HideFilterOutput(
   const std::string& filter_name, const std::string& output_name
   )
 {
-  /*
   // Get output
-  auto filter = this->m_Workspace.GetFilter( filter_name );
-  if( filter != NULL )
-  {
-    auto output = filter->GetOutputData( output_name );
-    if( output != NULL )
-    {
-      std::string data_name = output_name + "@" + filter_name;
-      this->m_UI->Viewer->HideData( data_name );
+  /* TODO
+     auto filter = this->m_Workspace.GetFilter( filter_name );
+     if( filter != NULL )
+     {
+     auto output = filter->GetOutputData( output_name );
+     if( output != NULL )
+     {
+     std::string data_name = output_name + "@" + filter_name;
+     this->m_UI->Viewer->HideData( data_name );
 
-    } // fi
+     } // fi
 
-  } // fi
+     } // fi
   */
 }
 
@@ -146,22 +146,25 @@ _PropertiesFilterOutput(
   const std::string& filter_name, const std::string& output_name
   )
 {
-  /*
   // Get output
   auto filter = this->m_Workspace.GetFilter( filter_name );
   if( filter != NULL )
   {
-    auto output = filter->GetOutputData( output_name );
+    auto output = filter->GetOutputData< vtkPolyData >( output_name );
     if( output != NULL )
     {
-      std::string data_name = output_name + "@" + filter_name;
-      auto prop = this->m_UI->Viewer->GetProp( data_name );
+      auto actor = this->m_UI->Viewer->GetActor( output );
+      if( actor != NULL )
+      {
+        cpExtensions::QT::PropertyWidget* wdg =
+          new cpExtensions::QT::PropertyWidget( NULL );
+        wdg->SetProp( actor );
+        wdg->SetRenderWindow(
+          this->m_UI->Viewer->GetInteractor( 3 )->GetRenderWindow( )
+          );
+        wdg->show( );
 
-      cpExtensions::QT::PropertyWidget* wdg =
-        new cpExtensions::QT::PropertyWidget( NULL );
-      wdg->SetProp( prop );
-      wdg->SetRenderWindow( this->m_UI->Viewer->GetInteractor( 3 )->GetRenderWindow( ) );
-      wdg->show( );
+      } // fi
     }
     else
       QMessageBox::critical(
@@ -171,7 +174,6 @@ _PropertiesFilterOutput(
         );
 
   } // fi
-  */
 }
 
 // eof - $RCSfile$