]> Creatis software - clitk.git/blobdiff - vv/vvSlicer.cxx
Remove warning with VTK7.1
[clitk.git] / vv / vvSlicer.cxx
index ce6d335abdd69cac344c49c0305f596be7fb9ebf..847909568e94c2f1551edbd07e3c75be4777801f 100644 (file)
@@ -393,6 +393,9 @@ void vvSlicer::SetImage(vvImage::Pointer image)
 #if VTK_MAJOR_VERSION <= 5
     mImageReslice->GetOutput()->SetUpdateExtent(extent);
     mImageReslice->GetOutput()->Update();
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+    mImageReslice->UpdateExtent(extent);
+    mImageReslice->Update();
 #else
     mImageReslice->SetUpdateExtent(extent);
     mImageReslice->Update();
@@ -1790,6 +1793,8 @@ void vvSlicer::Render()
     }
 #if VTK_MAJOR_VERSION <= 5
     mOverlayMapper->GetOutput()->SetUpdateExtent(mOverlayActor->GetDisplayExtent());
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+    mOverlayMapper->UpdateExtent(mOverlayActor->GetDisplayExtent());
 #else
     mOverlayMapper->SetUpdateExtent(mOverlayActor->GetDisplayExtent());
 #endif
@@ -1798,6 +1803,8 @@ void vvSlicer::Render()
   if (mFusion && mFusionActor->GetVisibility()) {
 #if VTK_MAJOR_VERSION <= 5
     mFusionMapper->GetOutput()->SetUpdateExtent(mFusionActor->GetDisplayExtent());
+#elif VTK_MAJOR_VERSION >= 7 && VTK_MINOR_VERSION >= 1
+    mFusionMapper->UpdateExtent(mFusionActor->GetDisplayExtent());
 #else
     mFusionMapper->SetUpdateExtent(mFusionActor->GetDisplayExtent());
 #endif