X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FLineView.cxx;h=253fa58ab8f1e021f41c8308b5ea309b9c76b8f0;hb=f9901e756bb82bd333310b47607875331616bb29;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..253fa58 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/LineView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/LineView.cxx @@ -85,9 +85,14 @@ 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); +#else + contour_mapped.back()->SetInputData(aLineGrid); +#endif + contour_mapped.back()->ImmediateModeRenderingOn(); contour_actor.back()->SetMapper(contour_mapped.back());