1 #include "PipelineEditor.h"
2 #include "ui_PipelineEditor.h"
6 #include <cpPlugins/Image.h>
7 #include <cpPipelineEditor/Editor.h>
9 #include <vtkImageData.h>
10 #include <vtkPolyData.h>
11 #include <vtkRenderWindowInteractor.h>
13 // -------------------------------------------------------------------------
15 PipelineEditor( int argc, char* argv[], QApplication* app, QWidget* parent )
16 : Superclass( argc, argv, app, parent ),
17 m_UI( new Ui::PipelineEditor )
19 // Basic configuration
20 this->m_UI->setupUi( this );
22 this->m_UI->LoadedPlugins,
24 this->m_UI->Canvas->editor( )
27 // Connect actions to slots
29 this->m_UI->ActionBackgroundMPR, SIGNAL( triggered( ) ),
30 this, SLOT( _ActionBackgroundMPR( ) )
33 this->m_UI->ActionBackground3D, SIGNAL( triggered( ) ),
34 this, SLOT( _ActionBackground3D( ) )
37 this->m_UI->ButtonLoadPluginsFile, SIGNAL( clicked( ) ),
38 this, SLOT( _InteractiveLoadPlugins( ) )
41 this->m_UI->ButtonLoadPluginsPath, SIGNAL( clicked( ) ),
42 this, SLOT( _InteractiveLoadPluginsFromPath( ) )
45 this->m_UI->ActionOpenWorkspace, SIGNAL( triggered( ) ),
46 this, SLOT( _InteractiveLoadWorkspace( ) )
49 this->m_UI->ActionSaveWorkspace, SIGNAL( triggered( ) ),
50 this, SLOT( _InteractiveSaveWorkspace( ) )
53 this->m_UI->Canvas->editor( ),
54 SIGNAL( execFilter( const std::string& ) ),
56 SLOT( _ExecFilter( const std::string& ) )
59 this->m_UI->Canvas->editor( ),
60 SIGNAL( showFilterOutput( const std::string&, const std::string& ) ),
62 SLOT( _ShowFilterOutput( const std::string&, const std::string& ) )
65 this->m_UI->Canvas->editor( ),
66 SIGNAL( hideFilterOutput( const std::string&, const std::string& ) ),
68 SLOT( _HideFilterOutput( const std::string&, const std::string& ) )
71 this->m_UI->Canvas->editor( ),
72 SIGNAL( visualPropertiesFilterOutput( const std::string&, const std::string& ) ),
74 SLOT( _PropertiesFilterOutput( const std::string&, const std::string& ) )
78 // -------------------------------------------------------------------------
85 // -------------------------------------------------------------------------
87 _ActionBackgroundMPR( )
89 this->_BackgroundProperties( 4 );
92 // -------------------------------------------------------------------------
94 _ActionBackground3D( )
96 this->_BackgroundProperties( 3 );
99 // -------------------------------------------------------------------------
100 void PipelineEditor::
102 const std::string& filter_name, const std::string& output_name
105 this->_ExecFilter( filter_name );
106 this->_ShowData( filter_name, output_name );
109 // -------------------------------------------------------------------------
110 void PipelineEditor::
112 const std::string& filter_name, const std::string& output_name
115 this->_HideData( filter_name, output_name );
118 // -------------------------------------------------------------------------
119 void PipelineEditor::
120 _PropertiesFilterOutput(
121 const std::string& filter_name, const std::string& output_name
124 this->_DataProperties( filter_name, output_name );