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 );
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 != "" )
{
auto filter = this->m_Workspace->GetFilter( filter_name );
if( filter != NULL )
{
- auto output = filter->GetOutput< _TDataObject >( output_name );
+ auto output = filter->GetOutputData< _TDataObject >( output_name );
if( output != NULL )
{
std::string data_name = output_name + "@" + filter_name;