X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2Fexamples%2Fplugins%2Fexample_ShowImage.cxx;h=7a74ff19db52bccd6bc85fd51918774b36cf77e0;hb=24d0c2ad34de2cbd89fed76058f2995cdf81d239;hp=d08cc146f7f866b6ff7055c2b086742ba198bf92;hpb=e6bef8234ffd9030c68a6786466a08cf144b7871;p=cpPlugins.git diff --git a/appli/examples/plugins/example_ShowImage.cxx b/appli/examples/plugins/example_ShowImage.cxx index d08cc14..7a74ff1 100644 --- a/appli/examples/plugins/example_ShowImage.cxx +++ b/appli/examples/plugins/example_ShowImage.cxx @@ -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 =