]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.cxx
index c6271ca6635e1f3421669be85ddc46dfb050baf3..a53476f894a8b30953fadfb84322a211fcebd6bf 100644 (file)
@@ -1,5 +1,9 @@
 #include <cpPlugins/Interface/ProcessObject.h>
 
+#ifdef cpPlugins_Interface_QT4
+#include <cpPlugins/Interface/ParametersQtDialog.h>
+#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$