]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx
#3114 bbGEditor Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxVtkSceneManager.cxx
index 731585d7ac15b80496e0cc030a37f53f072113f2..3832cf231ac44fa8328af02830be11bafc8bb440 100644 (file)
@@ -213,7 +213,15 @@ void wxVtkSceneManager::configureBaseView()
                        aPolygon->GetPointIds());
        aPolygonGrid->SetPoints(_pts);
        _aPolygonMapper = vtkDataSetMapper::New();
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
        _aPolygonMapper->SetInput(aPolygonGrid);
+#else
+       _aPolygonMapper->SetInputData(aPolygonGrid);
+#endif
+
+
        _fillObjectActor->SetMapper(_aPolygonMapper);
        _fillObjectActor->GetProperty()->SetColor(PORTFILL_NH_R, PORTFILL_NH_G,
                        PORTFILL_NH_B);