#include <cpPlugins/Interface/ProcessObject.h>
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::ProcessObject::
-GetClassName( ) const
-{
- return( "cpPlugins::Interface::ProcessObject" );
-}
-
-// -------------------------------------------------------------------------
-std::string cpPlugins::Interface::ProcessObject::
-GetClassType( ) const
-{
- return( "ProcessObject" );
-}
+#ifdef cpPlugins_Interface_QT4
+#include <cpPlugins/Interface/ParametersQtDialog.h>
+#endif // cpPlugins_Interface_QT4
// -------------------------------------------------------------------------
const cpPlugins::Interface::Parameters&
} // 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( )
}
// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObject::
-ProcessObject( )
- : Superclass( )
+bool cpPlugins::Interface::ProcessObject::
+ExecConfigurationDialog( QWidget* parent )
{
-}
+ bool r = false;
-// -------------------------------------------------------------------------
-cpPlugins::Interface::ProcessObject::
-~ProcessObject( )
-{
+#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 );
}
// -------------------------------------------------------------------------
-itk::DataObject* cpPlugins::Interface::ProcessObject::
-_GetInput( unsigned int idx )
+cpPlugins::Interface::ProcessObject::
+ProcessObject( )
+ : Superclass( ),
+ m_ITKObject( NULL ),
+ m_VTKObject( NULL )
{
- 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 )
+cpPlugins::Interface::ProcessObject::
+~ProcessObject( )
{
- if( idx < this->m_Outputs.size( ) )
- if( this->m_Outputs[ idx ].IsNotNull( ) )
- this->m_Outputs[ idx ]->SetRealDataObject( dobj );
}
// eof - $RCSfile$