]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/ProcessObject.hxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / ProcessObject.hxx
index 1b691ff0ee2f90d7d4ab096e764884170506b653..54c2f37bb8ede077d0f7238dbf760f5ac3382ec3 100644 (file)
@@ -54,13 +54,13 @@ template< class O >
 void cpPlugins::Interface::ProcessObject::
 _AddOutput( const std::string& name )
 {
-  typedef typename _TDataContainer::value_type _TValue;
   auto i = this->m_Outputs.find( name );
   if( i == this->m_Outputs.end( ) )
   {
     typename O::Pointer o = O::New( );
     o->SetSource( this );
     this->m_Outputs[ name ] = o;
+    this->Modified( );
 
   } // fi
 }
@@ -74,9 +74,10 @@ _CreateITK( )
   if( filter == NULL )
   {
     typename F::Pointer filter_ptr = F::New( );
-    this->SetITK( filter_ptr.GetPointer( ) );
-    this->SetVTK( NULL );
+    this->m_ITKObject = filter_ptr;
+    this->m_VTKObject = NULL;
     filter = filter_ptr.GetPointer( );
+    this->Modified( );
 
   } // fi
   return( filter );
@@ -91,9 +92,10 @@ _CreateVTK( )
   if( filter == NULL )
   {
     vtkSmartPointer< F > filter_ptr = vtkSmartPointer< F >::New( );
-    this->SetITK( NULL );
-    this->SetVTK( filter_ptr );
+    this->m_ITKObject = NULL;
+    this->m_VTKObject = filter_ptr;
     filter = filter_ptr.GetPointer( );
+    this->Modified( );
 
   } // fi
   return( filter );