]> Creatis software - clitk.git/commitdiff
Debug ROI display
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 18 May 2016 08:39:39 +0000 (10:39 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 18 May 2016 08:39:39 +0000 (10:39 +0200)
if contour display was checked and ROI unchecked, the ROI was displayed
Now just contours are displayed

vv/vvROIActor.cxx

index 52ddea57adf28501634c1477b3ab300d3023f659..cfb965d5227f9e9e2a3992373f71e4a8bdc532ac 100644 (file)
@@ -249,7 +249,9 @@ void vvROIActor::UpdateSlice(int slicer, int slices, int force)
   }
 
   // Refresh overlays
-  mOverlayActors[slicer]->UpdateSlice(slicer, slices, force);
+  if (mIsVisible) {
+    mOverlayActors[slicer]->UpdateSlice(slicer, slices, force);
+  }
   mSlicerManager->GetSlicer(slicer)->Render();
 }
 //------------------------------------------------------------------------------