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 );
this->m_UI->Canvas->connectOutputPortSlot(
this, SLOT( _slotView( const std::string&, bool ) )
);
+ this->connect(
+ this->m_UI->actionPrintExecutionInformation, SIGNAL( triggered( bool ) ),
+ this, SLOT( _slotPrintExecutionInformation( bool ) )
+ );
// 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(
dynamic_cast< QWidget* >( viewer ) !=
- dynamic_cast< QWidget* >( this->m_UI->Viewer )
+ dynamic_cast< QWidget* >( this->m_UI->Viewer ) &&
+ viewer != NULL
)
{
delete this->m_UI->Viewer;
} // fi
}
+// -------------------------------------------------------------------------
+void PipelineEditor::
+_slotPrintExecutionInformation( bool show )
+{
+ if( this->m_Workspace.IsNotNull( ) )
+ this->m_Workspace->SetPrintExecution( show );
+}
+
// -------------------------------------------------------------------------
#include <cpBaseQtApplication/MainHelper.h>
cpBaseQtApplication_Main( PipelineEditor );