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 );
);
// 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 );
}
// -------------------------------------------------------------------------
{
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 );
}
else if( mesh != NULL )
{
- // TODO
+ viewer =
+ this->_configureViewer< cpExtensions::QT::SimpleMPRWidget >(
+ this->m_UI->Viewer
+ );
} // fi
if(