X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FInterface%2FProcessObject.cxx;h=a53476f894a8b30953fadfb84322a211fcebd6bf;hb=94a44f4cdf4747eccc933df0a9c75ec86e825d2e;hp=c6271ca6635e1f3421669be85ddc46dfb050baf3;hpb=9015cf98c60cf4ab304a639990004ee783a8bec0;p=cpPlugins.git diff --git a/lib/cpPlugins/Interface/ProcessObject.cxx b/lib/cpPlugins/Interface/ProcessObject.cxx index c6271ca..a53476f 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,6 +96,28 @@ 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->m_ClassName + std::string( " basic configuration" ), + parent + ); + if( r ) + this->m_Parameters = parameters; + +#endif // cpPlugins_Interface_QT4 + + return( r ); +} + // ------------------------------------------------------------------------- cpPlugins::Interface::ProcessObject:: ProcessObject( ) @@ -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$