]> Creatis software - clitk.git/commitdiff
Updating reslice filter information in UpdateDisplayExtent was not enough, calling
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 9 Jun 2011 09:19:48 +0000 (11:19 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Thu, 9 Jun 2011 09:19:48 +0000 (11:19 +0200)
AdjustResliceToSliceOrientation does a better job although it should not
be necessary.

vv/vvSlicer.cxx

index 43583571456b3d12d6253bc27e7fb17449eb893a..6100c56dfcc84aa5ad97ca19c980bad135cfd6c6 100644 (file)
@@ -836,8 +836,8 @@ void vvSlicer::UpdateDisplayExtent()
   
   // Overlay image actor
   if (mOverlay && mOverlayActor->GetVisibility()) {
+    AdjustResliceToSliceOrientation(mOverlayReslice);
     int overExtent[6];
-    mOverlayReslice->GetOutput()->UpdateInformation();
     this->ConvertImageToImageDisplayExtent(input, w_ext, mOverlayReslice->GetOutput(), overExtent);
     ClipDisplayedExtent(overExtent, mOverlayMapper->GetInput()->GetWholeExtent());
     mOverlayActor->SetDisplayExtent( overExtent );
@@ -845,8 +845,8 @@ void vvSlicer::UpdateDisplayExtent()
 
   // Fusion image actor
   if (mFusion && mFusionActor->GetVisibility()) {
+    AdjustResliceToSliceOrientation(mFusionReslice);
     int fusExtent[6];
-    mFusionReslice->GetOutput()->UpdateInformation();
     this->ConvertImageToImageDisplayExtent(input, w_ext, mFusionReslice->GetOutput(), fusExtent);
     ClipDisplayedExtent(fusExtent, mFusionMapper->GetInput()->GetWholeExtent());
     mFusionActor->SetDisplayExtent(fusExtent);