]> Creatis software - clitk.git/commitdiff
Toggle interpolation for fusion and overlay actors to (when applicable)
authorsrit <srit>
Thu, 16 Dec 2010 18:04:21 +0000 (18:04 +0000)
committersrit <srit>
Thu, 16 Dec 2010 18:04:21 +0000 (18:04 +0000)
vv/vvSlicerManager.cxx

index 46e7764228b8a2b659171fef71c158535e2bb96c..ac2afc43b80d3cc648707a4e0c06469dbc269f2f 100644 (file)
@@ -468,6 +468,10 @@ void vvSlicerManager::ToggleInterpolation()
   bool interpolate=!(mSlicers[0]->GetImageActor()->GetInterpolate());
   for ( unsigned int i = 0; i < mSlicers.size(); i++) {
     mSlicers[i]->GetImageActor()->SetInterpolate(interpolate);
+    if (mSlicers[i]->GetOverlayActor())
+      mSlicers[i]->GetOverlayActor()->SetInterpolate(interpolate);
+    if (mSlicers[i]->GetFusionActor())
+      mSlicers[i]->GetFusionActor()->SetInterpolate(interpolate);
   }
 }
 //----------------------------------------------------------------------------