X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FProcessObject.cxx;h=b2b9337d1ea8ccb07ee17bc1a392d7fc12070d9b;hb=f2f39f66027a98bd8dac50bade5618e0136bbefa;hp=c6271ca6635e1f3421669be85ddc46dfb050baf3;hpb=9015cf98c60cf4ab304a639990004ee783a8bec0;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/ProcessObject.cxx b/lib/cpPlugins/Interface/ProcessObject.cxx index c6271ca..b2b9337 100644 --- a/lib/cpPlugins/Interface/ProcessObject.cxx +++ b/lib/cpPlugins/Interface/ProcessObject.cxx @@ -1,5 +1,9 @@ #include +#ifdef cpPlugins_Interface_QT4 +#include +#endif // cpPlugins_Interface_QT4 + // ------------------------------------------------------------------------- const cpPlugins::Interface::Parameters& cpPlugins::Interface::ProcessObject:: @@ -60,16 +64,6 @@ SetInput( unsigned int idx, cpPlugins::Interface::DataObject* dobj ) } // fi } -// ------------------------------------------------------------------------- -cpPlugins::Interface::DataObject* cpPlugins::Interface::ProcessObject:: -GetOutput( unsigned int idx ) -{ - if( idx < this->m_Outputs.size( ) ) - return( this->m_Outputs[ idx ] ); - else - return( NULL ); -} - // ------------------------------------------------------------------------- std::string cpPlugins::Interface::ProcessObject:: Update( ) @@ -102,13 +96,35 @@ DisconnectOutputs( ) this->m_Outputs[ idx ]->DisconnectPipeline( ); } +// ------------------------------------------------------------------------- +bool cpPlugins::Interface::ProcessObject:: +ExecConfigurationDialog( QWidget* parent ) +{ + bool r = false; + +#ifdef cpPlugins_Interface_QT4 + + Parameters parameters = this->m_DefaultParameters; + r = cpPlugins::Interface::ParametersQtDialog( + parameters, + this->GetClassName( ) + std::string( " basic configuration" ), + parent + ); + if( r ) + this->m_Parameters = parameters; + +#endif // cpPlugins_Interface_QT4 + + return( r ); +} + // ------------------------------------------------------------------------- cpPlugins::Interface::ProcessObject:: ProcessObject( ) - : Superclass( ) + : Superclass( ), + m_ITKObject( NULL ), + m_VTKObject( NULL ) { - this->m_ClassName = "cpPlugins::Interface::ProcessObject"; - this->m_ClassCategory = "BasicObject"; } // ------------------------------------------------------------------------- @@ -117,25 +133,4 @@ cpPlugins::Interface::ProcessObject:: { } -// ------------------------------------------------------------------------- -/* TODO - itk::DataObject* cpPlugins::Interface::ProcessObject:: - _GetInput( unsigned int idx ) - { - if( idx < this->m_Inputs.size( ) ) - return( this->m_Inputs[ idx ]->GetRealDataObject( ) ); - else - return( NULL ); - } - - // ------------------------------------------------------------------------- - void cpPlugins::Interface::ProcessObject:: - _SetOutput( unsigned int idx, itk::DataObject* dobj ) - { - if( idx < this->m_Outputs.size( ) ) - if( this->m_Outputs[ idx ].IsNotNull( ) ) - this->m_Outputs[ idx ]->SetRealDataObject( dobj ); - } -*/ - // eof - $RCSfile$