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 );
40 virtual DataObject* GetOutput( unsigned int idx );
42 virtual std::string Update( );
43 virtual void DisconnectOutputs( );
47 virtual ~ProcessObject( );
50 inline void _MakeOutput( unsigned int idx );
53 inline T* _Input( unsigned int idx );
56 inline const T* _Input( unsigned int idx ) const;
59 inline T* _Output( unsigned int idx );
62 inline const T* _Output( unsigned int idx ) const;
64 virtual std::string _GenerateData( ) = 0;
67 // Purposely not implemented
68 ProcessObject( const Self& );
69 Self& operator=( const Self& );
72 itk::ProcessObject::Pointer m_RealProcessObject;
73 Parameters m_DefaultParameters;
74 Parameters m_Parameters;
76 std::vector< DataObject::Pointer > m_Inputs;
77 std::vector< DataObject::Pointer > m_Outputs;
84 #include <cpPlugins/Interface/ProcessObject.hxx>
86 #endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__