X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkSphereList.cxx;h=24538a70c4f48013b30fd91b953d3aebb87e8f05;hb=b5d2eb7c48011dfed815c80c3bb460ff9bee27f4;hp=616f088d4b5093246a909ec71b00e15bcad69b65;hpb=84454af9be8cecfbf41ca7c0198c65efe60f9b48;p=bbtk.git diff --git a/packages/vtk/src/bbvtkSphereList.cxx b/packages/vtk/src/bbvtkSphereList.cxx index 616f088..24538a7 100644 --- a/packages/vtk/src/bbvtkSphereList.cxx +++ b/packages/vtk/src/bbvtkSphereList.cxx @@ -135,7 +135,14 @@ void SphereList::Process() newSphere -> SetPhiResolution(20); newSphere -> SetRadius( 1 ); vtkPolyDataMapper * newMapper = vtkPolyDataMapper::New(); + +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 newMapper -> SetInput( newSphere -> GetOutput() ); +#else + newMapper -> SetInputData( newSphere -> GetOutput() ); +#endif + vtkActor * newActor = vtkActor::New(); sphereActor.push_back(newActor); newActor -> SetMapper(newMapper);