]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/LineView.cxx
#3109 creaMaracasVisu Bug New Normal - branch vtk7itk4 compilation with vtk7
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / LineView.cxx
index c4fd4408662f8c1710fe8fa4d2e0c1b5944c52ab..253fa58ab8f1e021f41c8308b5ea309b9c76b8f0 100644 (file)
@@ -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());