names.insert( dIt->first );
}
+// -------------------------------------------------------------------------
+unsigned int cpPlugins::Interface::ProcessObject::
+GetNumberOfInputs( ) const
+{
+ return( this->m_Inputs.size( ) );
+}
+
+// -------------------------------------------------------------------------
+unsigned int cpPlugins::Interface::ProcessObject::
+GetNumberOfOutputs( ) const
+{
+ return( this->m_Outputs.size( ) );
+}
+
// -------------------------------------------------------------------------
bool cpPlugins::Interface::ProcessObject::
SetOutputObjectName(
_TDataContainer::iterator i = this->m_Inputs.begin( );
for( ; i != this->m_Inputs.end( ) && r == ""; ++i )
{
- Self* src = dynamic_cast< Self* >( i->second->GetSource( ) );
- if( src != NULL )
- r = src->Update( );
-
+ if( i->second.IsNotNull( ) )
+ {
+ Self* src = dynamic_cast< Self* >( i->second->GetSource( ) );
+ if( src != NULL )
+ r = src->Update( );
+ }
+ else
+ r = "cpPlugins::Interface::ProcessObject: No input connected.";
+
} // rof
// Current update
this->m_ParametersDialog = new ParametersQtDialog( );
this->m_ParametersDialog->addInteractor( interactor );
#endif // cpPlugins_Interface_QT4
+ this->m_Interactors.insert( interactor );
}
// -------------------------------------------------------------------------
{
if( this->m_ParametersDialog == NULL )
this->m_ParametersDialog = new ParametersQtDialog( );
- this->m_ParametersDialog->setTitle(
- this->GetClassName( ) + std::string( " basic configuration" )
- );
+ /* TODO
+ this->m_ParametersDialog->setTitle(
+ this->GetClassName( ) + std::string( " basic configuration" )
+ );
+ */
this->m_ParametersDialog->setParent( NULL );
this->m_ParametersDialog->setParameters( this->m_Parameters );
- if( !( this->m_ParametersDialog->IsModal( ) ) )
- {
- this->m_ParametersDialog->show( );
- r = Self::DialogResult_Modal;
- }
+ if( this->m_ParametersDialog->exec( ) == 1 )
+ r = Self::DialogResult_NoModal;
else
- {
- if( this->m_ParametersDialog->exec( ) == 1 )
- r = Self::DialogResult_NoModal;
- else
- r = Self::DialogResult_Cancel;
-
- } // fi
+ r = Self::DialogResult_Cancel;
}
else
r = Self::DialogResult_Cancel;