]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.cxx
index 61eaf96e661763080ed48470bfabf069bca4e8b5..a53476f894a8b30953fadfb84322a211fcebd6bf 100644 (file)
@@ -1,18 +1,8 @@
 #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&
@@ -74,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( )
@@ -117,35 +97,40 @@ DisconnectOutputs( )
 }
 
 // -------------------------------------------------------------------------
-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->m_ClassName + 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( )
 {
-  if( idx < this->m_Inputs.size( ) )
-    return( this->m_Inputs[ idx ]->GetRealDataObject( ) );
-  else
-    return( NULL );
+  this->m_ClassName = "cpPlugins::Interface::ProcessObject";
+  this->m_ClassCategory = "BasicObject";
 }
 
 // -------------------------------------------------------------------------
-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$