1 #ifndef __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
2 #define __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__
4 #include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
5 #include <cpPlugins/Interface/Config.h>
6 #include <cpPlugins/Interface/Object.h>
7 #include <cpPlugins/Interface/DataObject.h>
8 #include <cpPlugins/Interface/Parameters.h>
10 #ifdef cpPlugins_Interface_QT4
14 #endif // cpPlugins_Interface_QT4
16 #include <itkProcessObject.h>
24 class cpPlugins_Interface_EXPORT ProcessObject
28 typedef ProcessObject Self;
29 typedef Object Superclass;
30 typedef itk::SmartPointer< Self > Pointer;
31 typedef itk::SmartPointer< const Self > ConstPointer;
34 itkTypeMacro( ProcessObject, Object );
37 virtual const Parameters& GetDefaultParameters( ) const;
38 virtual void SetParameters( const Parameters& params );
40 virtual unsigned int GetNumberOfInputs( ) const;
41 virtual unsigned int GetNumberOfOutputs( ) const;
43 virtual void SetNumberOfInputs( unsigned int n );
44 virtual void SetNumberOfOutputs( unsigned int n );
46 virtual void SetInput( unsigned int idx, DataObject* dobj );
48 virtual std::string Update( );
49 virtual void DisconnectOutputs( );
51 virtual bool ExecConfigurationDialog( QWidget* parent );
54 inline T* GetInput( unsigned int idx );
57 inline const T* GetInput( unsigned int idx ) const;
60 inline T* GetOutput( unsigned int idx );
63 inline const T* GetOutput( unsigned int idx ) const;
67 virtual ~ProcessObject( );
70 inline void _MakeOutput( unsigned int idx );
72 virtual std::string _GenerateData( ) = 0;
75 // Purposely not implemented
76 ProcessObject( const Self& );
77 Self& operator=( const Self& );
80 itk::ProcessObject::Pointer m_RealProcessObject;
81 Parameters m_DefaultParameters;
82 Parameters m_Parameters;
84 std::vector< DataObject::Pointer > m_Inputs;
85 std::vector< DataObject::Pointer > m_Outputs;
92 #include <cpPlugins/Interface/ProcessObject.hxx>
94 #endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__