X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2FCutModule%2Fkernel%2FCutModelData.cxx;h=ccd36989a479e62849484c255e0a17ff5b793999;hb=f9901e756bb82bd333310b47607875331616bb29;hp=95e1234b460b7390183964a3a7751c98e6f65203;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/CutModule/kernel/CutModelData.cxx b/lib/maracasVisuLib/src/CutModule/kernel/CutModelData.cxx index 95e1234..ccd3698 100644 --- a/lib/maracasVisuLib/src/CutModule/kernel/CutModelData.cxx +++ b/lib/maracasVisuLib/src/CutModule/kernel/CutModelData.cxx @@ -168,12 +168,29 @@ void CutModelData::ShowViewBox(bool check)throw( CutModelException){ void CutModelData::ChangeShape(int selection)throw( CutModelException){ checkInvariant(); - if(selection == 0){ + if(selection == 0) + { +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 _Mapper->SetInput(_spherefigure->getPolyData()); +#else + _Mapper->SetInputData(_spherefigure->getPolyData()); +#endif }else if(selection == 1){ + +#if VTK_MAJOR_VERSION <= 5 _Mapper->SetInput(_cylinderfigure->getPolyData()); +#else + _Mapper->SetInputData(_cylinderfigure->getPolyData()); +#endif + }else if(selection == 2){ +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 _Mapper->SetInput(_cubefigure->getPolyData()); +#else + _Mapper->SetInputData(_cubefigure->getPolyData()); +#endif }else{ throw CutModelException("Shape type not found"); }