X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpPlugins%2FBaseObjects%2FProcessObject.h;h=ce5c5a6ab24a3de6ededc139be98d75eef0648e1;hb=047bca987b3c26b529561b5ba3918156510501fe;hp=dbc822b7cc9031890cb6268657922b7c8609b933;hpb=514419c89876aa75880cabee60c14f7582b1d33c;p=cpPlugins.git diff --git a/lib/cpPlugins/BaseObjects/ProcessObject.h b/lib/cpPlugins/BaseObjects/ProcessObject.h index dbc822b..ce5c5a6 100644 --- a/lib/cpPlugins/BaseObjects/ProcessObject.h +++ b/lib/cpPlugins/BaseObjects/ProcessObject.h @@ -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