]> Creatis software - cpPlugins.git/blobdiff - appli/examples/plugins/example_ShowImage.cxx
...
[cpPlugins.git] / appli / examples / plugins / example_ShowImage.cxx
index d08cc146f7f866b6ff7055c2b086742ba198bf92..7a74ff19db52bccd6bc85fd51918774b36cf77e0 100644 (file)
@@ -59,9 +59,7 @@ int main( int argc, char* argv[] )
   // Prepate slice objects
   vtkSmartPointer< cpExtensions::Visualization::ImageSliceActors > actors =
     vtkSmartPointer< cpExtensions::Visualization::ImageSliceActors >::New( );
-  actors->SetInputData(
-    reader->GetOutputData( "Output" )->GetVTK< vtkImageData >( ), 1
-    );
+  actors->SetInputData( reader->GetOutputData< vtkImageData >( "Output" ), 2 );
 
   // Prepare scene
   vtkSmartPointer< vtkRenderer > ren =