1 #ifndef __CPPLUGINS__PROCESSOBJECT__HXX__
2 #define __CPPLUGINS__PROCESSOBJECT__HXX__
4 // -------------------------------------------------------------------------
6 void cpPlugins::ProcessObject::
7 _AddOutput( const std::string& name )
9 auto i = this->m_Outputs.find( name );
10 if( i == this->m_Outputs.end( ) )
12 typename O::Pointer o = O::New( );
14 this->m_Outputs[ name ] = o;
20 // -------------------------------------------------------------------------
22 F* cpPlugins::ProcessObject::
25 F* filter = this->GetITK< F >( );
28 typename F::Pointer filter_ptr = F::New( );
29 this->m_ITKObject = filter_ptr;
30 this->m_VTKObject = NULL;
31 filter = filter_ptr.GetPointer( );
38 // -------------------------------------------------------------------------
40 F* cpPlugins::ProcessObject::
43 F* filter = this->GetVTK< F >( );
46 vtkSmartPointer< F > filter_ptr = vtkSmartPointer< F >::New( );
47 this->m_ITKObject = NULL;
48 this->m_VTKObject = filter_ptr;
49 filter = filter_ptr.GetPointer( );
56 #endif // __CPPLUGINS__PROCESSOBJECT__HXX__