]> Creatis software - creaContours.git/blobdiff - lib/kernel_ManagerContour_NDimensions/KernelManagerContour.cxx
#3112 creaContours Bug New Normal - branch vtk7itk4 compilation with vtk7
[creaContours.git] / lib / kernel_ManagerContour_NDimensions / KernelManagerContour.cxx
index 3f4a144a4ba9afb48eead9f98a17b6835b497922..633d43859b37f1dc24b26e9bd276723efb62deb1 100644 (file)
@@ -112,8 +112,16 @@ void KernelManagerContour::setVectImages(std::vector<vtkImageData*> vectimg)
        for(int i = 0; i < (int)(vectimg.size()); i++){
                vtkImageData* img = vectimg[i];
                vtkImageChangeInformation* change = vtkImageChangeInformation::New();
+
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                change->SetInformationInput(img);
                change->SetInputConnection(img->GetProducerPort());
+#else
+               change->SetInputData(img);
+#endif
+
                img->GetSpacing(spc);
                change->SetOutputSpacing(1,1,1);