]> Creatis software - cpPlugins.git/blobdiff - appli/PipelineEditor/PipelineEditor.cxx
...
[cpPlugins.git] / appli / PipelineEditor / PipelineEditor.cxx
index f0b8616da37f708cd484a2ec532c971acdea48f7..fec6efdeee90f9f1076b48cb46f8a5543af97de7 100644 (file)
@@ -15,7 +15,6 @@ PipelineEditor( int argc, char* argv[], QWidget* parent )
     m_UI( new Ui::PipelineEditor )
 {
   // Basic configuration
-  this->m_SingleWorkspace = true;
   this->m_BaseWindowTitle = "PipelineEditor - ";
   this->m_UI->setupUi( this );
   this->setCanvas( this->m_UI->Canvas );
@@ -34,14 +33,8 @@ PipelineEditor( int argc, char* argv[], QWidget* parent )
     );
 
   // Load command-line given workspace (if any)
-  this->m_ActiveWS = "empty";
   if( argc > 1 )
-  {
     this->_loadWorkspace( argv[ 1 ] );
-    this->m_ActiveWS = argv[ 1 ];
-  }
-  else
-    this->_addWorkspace( this->m_ActiveWS );
 }
 
 // -------------------------------------------------------------------------
@@ -70,7 +63,7 @@ _slotView( const std::string& name, bool show )
   {
     try
     {
-      auto ws = this->workspace( this->m_ActiveWS );
+      auto ws = this->workspace( );
       auto filter = ws->GetFilter( filter_name );
       cpBaseQtApplication_Execute( filter->Update( ) );
       auto image = filter->GetOutputData< vtkImageData >( output_name );
@@ -92,7 +85,10 @@ _slotView( const std::string& name, bool show )
       }
       else if( mesh != NULL )
       {
-        // TODO
+        viewer =
+          this->_configureViewer< cpExtensions::QT::SimpleMPRWidget >(
+            this->m_UI->Viewer
+            );
 
       } // fi
       if(