1 #ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
2 #define __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
4 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
5 #include <cpPlugins/Interface/Object.h>
6 #include <cpPlugins/Interface/DataObject.h>
7 #include <cpPlugins/Interface/Parameters.h>
9 #include <itkProcessObject.h>
17 class cpPlugins_Interface_EXPORT ProcessObject
21 typedef ProcessObject Self;
22 typedef Object Superclass;
23 typedef itk::SmartPointer< Self > Pointer;
24 typedef itk::SmartPointer< const Self > ConstPointer;
27 itkTypeMacro( ProcessObject, Object );
30 virtual const Parameters& GetDefaultParameters( ) const;
31 virtual void SetParameters( const Parameters& params );
33 virtual unsigned int GetNumberOfInputs( ) const;
34 virtual unsigned int GetNumberOfOutputs( ) const;
36 virtual void SetNumberOfInputs( unsigned int n );
37 virtual void SetNumberOfOutputs( unsigned int n );
39 virtual void SetInput( unsigned int idx, DataObject* dobj );
41 virtual std::string Update( );
42 virtual void DisconnectOutputs( );
45 inline T* GetInput( unsigned int idx );
48 inline const T* GetInput( unsigned int idx ) const;
51 inline T* GetOutput( unsigned int idx );
54 inline const T* GetOutput( unsigned int idx ) const;
58 virtual ~ProcessObject( );
61 inline void _MakeOutput( unsigned int idx );
63 virtual std::string _GenerateData( ) = 0;
66 // Purposely not implemented
67 ProcessObject( const Self& );
68 Self& operator=( const Self& );
71 itk::ProcessObject::Pointer m_RealProcessObject;
72 Parameters m_DefaultParameters;
73 Parameters m_Parameters;
75 std::vector< DataObject::Pointer > m_Inputs;
76 std::vector< DataObject::Pointer > m_Outputs;
83 #include <cpPlugins/Interface/ProcessObject.hxx>
85 #endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__