]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/BaseObjects/ProcessObject.h
Cast image filter added. ROI filter modified.
[cpPlugins.git] / lib / cpPlugins / BaseObjects / ProcessObject.h
index dbc822b7cc9031890cb6268657922b7c8609b933..ce5c5a6ab24a3de6ededc139be98d75eef0648e1 100644 (file)
@@ -31,30 +31,34 @@ namespace cpPlugins
       cpPlugins_Id_Macro( ProcessObject, Object );
 
       itkBooleanMacro( ExplicitExecution );
-      itkBooleanMacro( PrintExecution );
 
       itkGetStringMacro( Name );
       itkGetStringMacro( PluginName );
       itkGetConstMacro( ExplicitExecution, bool );
       itkGetConstMacro( LastExecutionSpan, long );
-      itkGetConstMacro( PrintExecution, bool );
 
       itkSetStringMacro( Name );
       itkSetStringMacro( PluginName );
       itkSetMacro( ExplicitExecution, bool );
-      itkSetMacro( PrintExecution, bool );
-      itkSetObjectMacro( PrintExecutionStream, std::ofstream );
 
     public:
+      void PrintExecutionOn( );
+      void PrintExecutionOff( );
+      bool GetPrintExecution( ) const;
+      bool SetPrintExecution( bool v );
+      void SetPrintExecutionStream( std::ofstream* s );
+
       Parameters* GetParameters( );
       const Parameters* GetParameters( ) const;
 
-      virtual void SetITK( itk::LightObject* o ) final;
-      virtual void SetVTK( vtkObjectBase* o ) final;
+      virtual void SetITK( itk::LightObject* o );
+      virtual void SetVTK( vtkObjectBase* o );
 
       // "Getters"
       std::set< std::string > GetInputsNames( ) const;
       std::set< std::string > GetOutputsNames( ) const;
+      bool HasInput( const std::string& n ) const;
+      bool HasOutput( const std::string& n ) const;
 
       unsigned int GetNumberOfInputs( ) const;
       unsigned int GetNumberOfOutputs( ) const;
@@ -94,13 +98,13 @@ namespace cpPlugins
       virtual void SetInput( const std::string& n, DataObject* o );
 
       // Other interesting methods
+      void DisconnectInput( const std::string& n, unsigned int id );
       void DisconnectInputs( );
       void DisconnectOutputs( );
       void Disconnect( );
 
       // Pipeline execution
       virtual void Modified( ) const cpPlugins_OVERRIDE;
-      virtual itk::ModifiedTimeType GetMTime( ) const cpPlugins_OVERRIDE;
       virtual void Update( );
 
       // Qt dialog creation
@@ -151,16 +155,6 @@ namespace cpPlugins
 
       bool m_PrintExecution;
       std::ostream* m_PrintExecutionStream;
-
-      typedef vtkSmartPointer< vtkRenderWindowInteractor > _TInteractor;
-      struct _TInteractorCmp
-      {
-        bool operator()(
-          const _TInteractor& a, const _TInteractor& b
-          ) const
-          { return( a.GetPointer( ) < b.GetPointer( ) ); }
-      };
-      std::set< _TInteractor, _TInteractorCmp > m_Interactors;
     };
 
   } // ecapseman