]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuImageChangeInformation.cxx
#3219 creaMaracasVisu Feature New Normal - vtk8itk4wx3-mingw64
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuImageChangeInformation.cxx
index b956413ec6464a5ec823f63f58958306be973b12..f32c600b64234a71e479fa267a9e330576a63b1b 100644 (file)
@@ -44,7 +44,14 @@ void ImageChangeInformation::Process()
                }
                mchange = vtkImageChangeInformation::New();
                img->GetExtent( ext );  
+
+//EED 2017-01-01 Migration VTK7
+#if VTK_MAJOR_VERSION <= 5
                mchange->SetInput( img );
+#else
+               mchange->SetInputData( img );
+#endif
+
                mchange->SetOutputExtentStart(0,0,0);
                if (bbGetInputNewSpacing().size()==3)
                {
@@ -73,6 +80,7 @@ void ImageChangeInformation::Process()
                mchange->Update();    //important
                bbSetOutputOut( mchange->GetOutput() );
        }  // if img
+
 }