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>
26 class cpPlugins_Interface_EXPORT ProcessObject
30 typedef ProcessObject Self;
31 typedef Object Superclass;
32 typedef itk::SmartPointer< Self > Pointer;
33 typedef itk::SmartPointer< const Self > ConstPointer;
36 itkTypeMacro( ProcessObject, Object );
39 virtual vtkAlgorithm* GetVTKAlgorithm( )
41 virtual const vtkAlgorithm* GetVTKAlgorithm( ) const
44 virtual const Parameters& GetDefaultParameters( ) const;
45 virtual void SetParameters( const Parameters& params );
47 virtual unsigned int GetNumberOfInputs( ) const;
48 virtual unsigned int GetNumberOfOutputs( ) const;
50 virtual void SetNumberOfInputs( unsigned int n );
51 virtual void SetNumberOfOutputs( unsigned int n );
53 virtual void SetInput( unsigned int idx, DataObject* dobj );
55 virtual std::string Update( );
56 virtual void DisconnectOutputs( );
58 virtual bool ExecConfigurationDialog( QWidget* parent );
61 inline T* GetInput( unsigned int idx );
64 inline const T* GetInput( unsigned int idx ) const;
67 inline T* GetOutput( unsigned int idx );
70 inline const T* GetOutput( unsigned int idx ) const;
74 virtual ~ProcessObject( );
77 inline void _MakeOutput( unsigned int idx );
79 virtual std::string _GenerateData( ) = 0;
82 // Purposely not implemented
83 ProcessObject( const Self& );
84 Self& operator=( const Self& );
87 itk::ProcessObject::Pointer m_RealProcessObject;
88 Parameters m_DefaultParameters;
89 Parameters m_Parameters;
91 std::vector< DataObject::Pointer > m_Inputs;
92 std::vector< DataObject::Pointer > m_Outputs;
99 #include <cpPlugins/Interface/ProcessObject.hxx>
101 #endif // __CPPLUGINS__INTERFACE__PROCESSOBJECT__H__