]> Creatis software - cpPlugins.git/blobdiff - appli/examples/example_HandleWidget.cxx
...
[cpPlugins.git] / appli / examples / example_HandleWidget.cxx
index 69bc3090b447cd7ee0170a962cfbbb40e85f41bf..e2dee09fd4cdc791544ec5d6249fad8d222cd613 100644 (file)
@@ -49,8 +49,8 @@ int main( int argc, char* argv[] )
   } // fi
 
   // Create objects
-  TProcessObject::Pointer reader;
-  reader = plugins.CreateProcessObject( "cpPlugins::IO::ImageReader" );
+  TProcessObject::Pointer reader =
+    plugins.CreateObject( "cpPlugins::IO::ImageReader" );
   if( reader.IsNull( ) )
   {
     std::cerr
@@ -94,7 +94,7 @@ int main( int argc, char* argv[] )
   // Create slice actors
   vtkSmartPointer< TSliceActors > image_actors =
     vtkSmartPointer< TSliceActors >::New( );
-  image_actors->AddInputData( image->GetVTK< vtkImageData >( ) );
+  image_actors->SetInputImage( image->GetVTK< vtkImageData >( ) );
   image_actors->SetAxis( 2 );
   image_actors->PushActorsInto( window );