X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkSphereList.cxx;h=cde4561ad0c8eb6e629f2c7bc3a26c3afa8d2fcd;hb=336df2924a7a1e1a4e18412a562a93f075970d0e;hp=616f088d4b5093246a909ec71b00e15bcad69b65;hpb=427d8c0ac838ab789a57b28f62a7f9ff243e7b60;p=bbtk.git diff --git a/packages/vtk/src/bbvtkSphereList.cxx b/packages/vtk/src/bbvtkSphereList.cxx index 616f088..cde4561 100644 --- a/packages/vtk/src/bbvtkSphereList.cxx +++ b/packages/vtk/src/bbvtkSphereList.cxx @@ -42,17 +42,15 @@ double SphereList::GetRadio(int i) { double radio; if ( bbGetInputlstRadio().size()==0 ) - { - radio = 1.0; - } else if ( i 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 + newSphere -> Update(); + newMapper -> SetInputData( newSphere -> GetOutput() ); +#endif + vtkActor * newActor = vtkActor::New(); sphereActor.push_back(newActor); newActor -> SetMapper(newMapper); @@ -163,6 +171,7 @@ void SphereList::Process() sphereActor[i] -> GetProperty() -> SetOpacity( bbGetInputOpacity() ); sphereActor[i] -> GetProperty() -> SetColor( cr,cg,cb ); vtkspheresourceLst[i] -> SetRadius( GetRadio(i) ); + vtkspheresourceLst[i] -> Update(); } // for i if (sphereActor.size() != 0)