]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkImageBoundaries.cxx
#3107 BBTK Bug New Normal - branch vtk7itk4 compilation with vtk7
[bbtk.git] / packages / vtk / src / bbvtkImageBoundaries.cxx
index c74a6ec2462f96bf76803d200e51c697be995f48..e947bb36046a60fc60f98339f0f070825d5a1b6f 100644 (file)
@@ -46,7 +46,14 @@ void ImageBoundaries::Process()
                int ext[6];
                double value;
                
+//EED 2017-01-01 Migration VTK7
+#if (VTK_MAJOR_VERSION <= 5) 
                bbGetInputIn()->GetWholeExtent(ext);
+#endif
+#if (VTK_MAJOR_VERSION >= 6) 
+               bbGetInputIn()->GetExtent(ext);
+#endif
+
                int maxX        = ext[1]-ext[0]+1;
                int maxY        = ext[3]-ext[2]+1;
                int maxZ        = ext[5]-ext[4]+1;