setViewer( cpExtensions::QT::ActorsWidgetInterface* v )
{
this->m_Viewer = v;
+ if( this->m_Viewer != NULL )
+ {
+ auto interactors = this->m_Viewer->GetInteractors( );
+ for( auto wIt : this->m_Workspaces )
+ for( auto i : interactors )
+ wIt.second->AddInteractor( i );
+
+ } // fi
}
// -------------------------------------------------------------------------
this->m_Workspaces[ name ] = TWorkspace::New( );
if( this->m_Canvas != NULL )
this->m_Canvas->setWorkspace( this->m_Workspaces[ name ] );
+ if( this->m_Viewer != NULL )
+ {
+ auto interactors = this->m_Viewer->GetInteractors( );
+ auto wIt = this->m_Workspaces.find( name );
+ for( auto i : interactors )
+ wIt->second->AddInteractor( i );
+
+ } // fi
this->setWindowTitle( ( this->m_BaseWindowTitle + name ).c_str( ) );
} // fi