X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FLineView.cxx;h=4d49919874205c01fe7e1180e3e2feaa3d06e727;hb=15112ae15da4222831b0e8e7c9be87daf9e99a1c;hp=c4fd4408662f8c1710fe8fa4d2e0c1b5944c52ab;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/LineView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/LineView.cxx index c4fd440..4d49919 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/LineView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/LineView.cxx @@ -85,10 +85,15 @@ void LineView::CreateNewLine(double x1, double y1, double z1, double x2, double aLineGrid->Allocate(1,1); aLineGrid->InsertNextCell(aLine->GetCellType(),aLine->GetPointIds()); aLineGrid->SetPoints(pointsLine); - +//EED 2017-01-01 Migration VTK7 +#if VTK_MAJOR_VERSION <= 5 contour_mapped.back()->SetInput(aLineGrid); contour_mapped.back()->ImmediateModeRenderingOn(); +#else + contour_mapped.back()->SetInputData(aLineGrid); +#endif + contour_actor.back()->SetMapper(contour_mapped.back()); contour_actor.back()->GetProperty()->BackfaceCullingOn();