From: tbaudier Date: Thu, 18 Feb 2016 16:07:29 +0000 (+0100) Subject: Ensure compatibility between VTK5 & VTK6 X-Git-Tag: v1.4.0~56 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7cb1c6faba3462e7a7e9a2cb67014214fae5e50a;p=clitk.git Ensure compatibility between VTK5 & VTK6 --- 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();