]> Creatis software - clitk.git/commitdiff
Removed call to UpdateOrientation in SetFusion and SetOverlay to avoid
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 27 Jun 2011 09:48:47 +0000 (11:48 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 27 Jun 2011 09:48:47 +0000 (11:48 +0200)
changing slice when reloading.

vv/vvSlicer.cxx

index 6b52ea1abc1e7b5f737946df19c1e2748bc7cf64..302da7eae2689d6d7ef7d2657a6fa42e80babc4f 100644 (file)
@@ -369,7 +369,8 @@ void vvSlicer::SetOverlay(vvImage::Pointer overlay)
       this->GetRenderer()->AddActor(mOverlayActor);
 
     //Synchronize orientation and slice
-    this->SetSliceOrientation(this->SliceOrientation);
+    AdjustResliceToSliceOrientation(mOverlayReslice);
+    this->UpdateDisplayExtent();
     this->SetTSlice(mCurrentTSlice);
   }
 }
@@ -412,7 +413,8 @@ void vvSlicer::SetFusion(vvImage::Pointer fusion)
     }
 
     //Synchronize orientation and slice
-    this->SetSliceOrientation(this->SliceOrientation);
+    AdjustResliceToSliceOrientation(mFusionReslice);
+    this->UpdateDisplayExtent();
     this->SetTSlice(mCurrentTSlice);
   }
 }