X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuAnimationSphere.cxx;h=887cd0ef0f7ed1c7312dfae79be8cbb579a7555c;hb=9efc4d8bf8fa16e76153eb2efccc5057a79f3d29;hp=dba7dcdf2873d06fc6197423c3a0c8901291205d;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuAnimationSphere.cxx b/bbtk/src/bbmaracasvisuAnimationSphere.cxx index dba7dcd..887cd0e 100644 --- a/bbtk/src/bbmaracasvisuAnimationSphere.cxx +++ b/bbtk/src/bbmaracasvisuAnimationSphere.cxx @@ -60,7 +60,12 @@ void AnimationSphere::Process() vtksphere->SetRadius( 1 ); vtkPolyDataMapper *sphereMapper = vtkPolyDataMapper::New(); +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 sphereMapper->SetInput( vtksphere->GetOutput() ); +#else + sphereMapper->SetInputData( vtksphere->GetOutput() ); +#endif sphereActor = vtkActor::New(); sphereActor->SetMapper(sphereMapper); @@ -144,7 +149,14 @@ void AnimationSphere::Process() w2i = vtkWindowToImageFilter::New(); png = vtkPNGWriter::New(); w2i->SetInput( bbGetInputRenderer()->GetRenderWindow() ); + +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 png->SetInput( w2i->GetOutput() ); +#else + png->SetInputData( w2i->GetOutput() ); +#endif + png->SetFileName( newFileName.c_str() ); png->Write(); png->Delete();