X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkSphereList.cxx;h=24538a70c4f48013b30fd91b953d3aebb87e8f05;hb=d19c5512748aa8e2dd5c3d01d9ec680ded1f17ce;hp=616f088d4b5093246a909ec71b00e15bcad69b65;hpb=088ed2b7bdbe14eb85a7245afaa693ddb7a53a97;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);