]> Creatis software - creaVtk.git/commitdiff
VTK7
authorEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Fri, 28 Dec 2018 10:45:24 +0000 (11:45 +0100)
committerEduardo DAVILA <davila@ei-ed-606.creatis.insa-lyon.fr>
Fri, 28 Dec 2018 10:45:24 +0000 (11:45 +0100)
bbtk_creaVtk_PKG/src/bbcreaVtkScreenShot.cxx

index 4ee0b66d14a1f495628ec992f58eeed6e97ac13c..08f4089c3dae5547eb2701706f3a714ab7474091 100644 (file)
@@ -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();        
 
 /*