]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.h
...
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.h
index 52b56546abe3521d83e50b959caa80cc8d4e7729..c48d61f3e36ab0f201c30aeac8a8f71b89640473 100644 (file)
@@ -3,13 +3,11 @@
 
 #include <set>
 
+#include <itkDataObject.h>
+
 #include <cpPlugins/Interface/DataObject.h>
 #include <cpPlugins/Interface/Parameters.h>
 
-#include <itkProcessObject.h>
-#include <vtkSmartPointer.h>
-#include <vtkAlgorithm.h>
-
 // Some forward declarations
 class vtkRenderWindowInteractor;
 #ifdef cpPlugins_Interface_QT4
@@ -23,7 +21,6 @@ namespace cpPlugins
   namespace Interface
   {
     // Some forward declarations
-    class Plugins;
 #ifdef cpPlugins_Interface_QT4
     class ParametersQtDialog;
 #else
@@ -50,31 +47,19 @@ namespace cpPlugins
       cpPlugins_Id_Macro( ProcessObject, BaseObject );
 
       itkBooleanMacro( Interactive );
+      itkGetConstMacro( Interactive, bool );
+      itkSetMacro( Interactive, bool );
 
       itkGetConstObjectMacro( Parameters, TParameters );
       itkGetObjectMacro( Parameters, TParameters );
-      itkGetConstMacro( Plugins, const Plugins* );
-      itkGetMacro( Plugins, Plugins* );
-      itkGetConstMacro( Interactive, bool );
-
-      itkSetObjectMacro( Plugins, Plugins );
-      itkSetMacro( Interactive, bool );
 
     public:
-      // To impact pipeline
-      virtual void Modified( ) const;
-
-      virtual void GetInputsNames( std::set< std::string >& names ) const;
-      virtual void GetOutputsNames( std::set< std::string >& names ) const;
+      virtual std::set< std::string > GetInputsNames( ) const;
+      virtual std::set< std::string > GetOutputsNames( ) const;
       unsigned int GetNumberOfInputs( ) const;
       unsigned int GetNumberOfOutputs( ) const;
 
-      virtual bool SetOutputObjectName(
-        const std::string& new_object_name,
-        const std::string& output_name
-        );
-
-      virtual void SetInput( const std::string& id, DataObject* dobj );
+      virtual bool SetInput( const std::string& id, DataObject* dobj );
 
       virtual std::string Update( );
       virtual void DisconnectOutputs( );
@@ -83,18 +68,6 @@ namespace cpPlugins
       virtual void AddInteractor( vtkRenderWindowInteractor* interactor );
       virtual bool ExecConfigurationDialog( QWidget* parent );
 
-      template< class T >
-        inline T* GetITK( );
-
-      template< class T >
-        inline const T* GetITK( ) const;
-
-      template< class T >
-        inline T* GetVTK( );
-
-      template< class T >
-        inline const T* GetVTK( ) const;
-
       template< class T >
         inline T* GetInput( const std::string& id );
 
@@ -113,15 +86,15 @@ namespace cpPlugins
 
       virtual void _AddInput( const std::string& name );
 
+      template< class O >
+        inline void _AddOutput( const std::string& id );
+
       template< class F >
         inline F* _CreateITK( );
 
       template< class F >
         inline F* _CreateVTK( );
 
-      template< class O >
-        inline void _MakeOutput( const std::string& id );
-
       virtual std::string _GenerateData( ) = 0;
 
     private:
@@ -130,19 +103,15 @@ namespace cpPlugins
       Self& operator=( const Self& );
 
     protected:
-      itk::ProcessObject::Pointer     m_ITKObject;
-      vtkSmartPointer< vtkAlgorithm > m_VTKObject;
-
       Parameters::Pointer m_Parameters;
       ParametersQtDialog* m_ParametersDialog;
-      TInteractors        m_Interactors;
-      Plugins* m_Plugins;
-      bool m_Interactive;
+
+      TInteractors m_Interactors;
+      bool         m_Interactive;
 
       typedef std::map< std::string, DataObject::Pointer > _TDataContainer;
       _TDataContainer m_Inputs;
       _TDataContainer m_Outputs;
-      std::map< std::string, std::string > m_OutputObjectsNames;
     };
 
     /**