return( this->m_Outputs.size( ) );
}
+// -------------------------------------------------------------------------
+std::vector< std::string > cpPlugins::Interface::ProcessObject::
+GetInputsNames( ) const
+{
+ std::vector< std::string > r;
+ auto dIt = this->m_Inputs.begin( );
+ for( ; dIt != this->m_Inputs.end( ); ++dIt )
+ r.push_back( dIt->first );
+ return( r );
+}
+
+// -------------------------------------------------------------------------
+std::vector< std::string > cpPlugins::Interface::ProcessObject::
+GetOutputsNames( ) const
+{
+ std::vector< std::string > r;
+ auto dIt = this->m_Outputs.begin( );
+ for( ; dIt != this->m_Outputs.end( ); ++dIt )
+ r.push_back( dIt->first );
+ return( r );
+}
+
// -------------------------------------------------------------------------
void cpPlugins::Interface::ProcessObject::
SetInput( const std::string& id, cpPlugins::Interface::DataObject* dobj )
#ifdef cpPlugins_Interface_QT4
- r = cpPlugins::Interface::ParametersQtDialog(
+ if( this->m_ParametersDialog == NULL )
+ {
+ this->m_ParametersDialog = new ParametersQtDialog( parent );
+ this->m_ParametersDialog->setTitle(
+ this->GetClassName( ) + std::string( " basic configuration" )
+ );
+ this->m_ParametersDialog->setParameters( this->m_Parameters );
+
+ } // fi
+
+ if( !( this->m_ParametersDialog->IsModal( ) ) )
+ {
+ this->m_ParametersDialog->show( );
+ r = true;
+ }
+ else
+ r = ( this->m_ParametersDialog->exec( ) == 1 );
+
+ /*
+ r = cpPlugins::Interface::ParametersQtDialog(
this->m_Parameters,
this->GetClassName( ) + std::string( " basic configuration" ),
parent
);
- /*
if( r )
- // TODO: !!! this->m_Parameters = parameters;
- */
+ */
#endif // cpPlugins_Interface_QT4
ProcessObject( )
: Superclass( ),
m_ITKObject( NULL ),
- m_VTKObject( NULL )
+ m_VTKObject( NULL ),
+ m_ParametersDialog( NULL )
{
this->m_Parameters = TParameters::New( );
}
cpPlugins::Interface::ProcessObject::
~ProcessObject( )
{
+ if( this->m_ParametersDialog == NULL )
+ delete this->m_ParametersDialog;
}
// -------------------------------------------------------------------------