]> Creatis software - cpPlugins.git/blobdiff - appli/cpPipelineEditor/App_cpPipelineEditor.cxx
...
[cpPlugins.git] / appli / cpPipelineEditor / App_cpPipelineEditor.cxx
index 78318a9a674241aad4cd1172a9aebde2196d04da..6af4723eb068421654ea6a23a6e63ce3f0823123 100644 (file)
@@ -58,10 +58,7 @@ App_cpPipelineEditor( int argc, char* argv[], QWidget* parent )
   this->m_Workspace = new cpPlugins::Interface::Workspace( );
   this->m_Workspace->SetPlugins( this->m_Plugins );
   this->m_UI->Canvas->editor( )->setWorkspace( this->m_Workspace );
-  this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 0 ) );
-  this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 1 ) );
-  this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 2 ) );
-  this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 3 ) );
+  this->m_Workspace->SetMPRViewer( this->m_UI->Viewer );
 
   // Connect actions to slots
   App_cpPipelineEditor_ConnectButton( LoadPluginsFile );
@@ -233,10 +230,7 @@ _ActionOpenWorkspace( )
     delete this->m_Workspace;
   this->m_Workspace = new cpPlugins::Interface::Workspace( );
   this->m_Workspace->SetPlugins( this->m_Plugins );
-  this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 0 ) );
-  this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 1 ) );
-  this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 2 ) );
-  this->m_Workspace->AddInteractor( this->m_UI->Viewer->GetInteractor( 3 ) );
+  this->m_Workspace->SetMPRViewer( this->m_UI->Viewer );
   std::string err = this->m_Workspace->LoadWorkspace( fname );
   if( err != "" )
   {