From b013a7b9c9c7dfdd6fcda16216ca7d33e6f1deda Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 28 Dec 2018 11:45:24 +0100 Subject: [PATCH] VTK7 --- bbtk_creaVtk_PKG/src/bbcreaVtkScreenShot.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkScreenShot.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkScreenShot.cxx index 4ee0b66..08f4089 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkScreenShot.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkScreenShot.cxx @@ -50,7 +50,15 @@ void ScreenShot::Process() wif->Update(); vtkPNGWriter *writer = vtkPNGWriter::New(); writer->SetFileName( bbGetInputFileName().c_str() ); - writer->SetInput(wif->GetOutput()); + +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 + writer->SetInput( wif->GetOutput() ); +#else + writer->SetInputData( wif->GetOutput() ); +#endif + + writer->Write(); /* -- 2.47.1