From 7cb1c6faba3462e7a7e9a2cb67014214fae5e50a Mon Sep 17 00:00:00 2001 From: tbaudier Date: Thu, 18 Feb 2016 17:07:29 +0100 Subject: [PATCH] Ensure compatibility between VTK5 & VTK6 --- vv/vvSlicer.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 48422cb..22a2c73 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -1549,6 +1549,7 @@ void vvSlicer::GetExtremasAroundMousePointer(double & min, double & max, vtkImag if(iLocalExtents[i*2 ]>iLocalExtents[i*2+1]) std::swap(iLocalExtents[i*2], iLocalExtents[i*2+1]); +#if VTK_MAJOR_VERSION > 5 for(int j=0;j<2; j++) { if(iLocalExtents[i*2+j]< mImageReslice->GetInputInformation()->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT())[2*i]) iLocalExtents[i*2+j] = mImageReslice->GetInputInformation()->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT())[2*i]; @@ -1556,6 +1557,7 @@ void vvSlicer::GetExtremasAroundMousePointer(double & min, double & max, vtkImag if(iLocalExtents[i*2+j]> mImageReslice->GetInputInformation()->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT())[2*i+1]) iLocalExtents[i*2+j] = mImageReslice->GetInputInformation()->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT())[2*i+1]; } +#endif } vtkSmartPointer voiFilter = vtkSmartPointer::New(); -- 2.47.1