X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvSlicer.cxx;h=302da7eae2689d6d7ef7d2657a6fa42e80babc4f;hb=1a8450d4940e31424315290bec3139418aadd87c;hp=3ac0ecddca9b241d57d80e3d79b3c4b4974298fb;hpb=8a1ec8f0cfd3c6b4cd29ea5456cbdf598f7f0b06;p=clitk.git diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 3ac0ecd..302da7e 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -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); } } @@ -777,6 +779,7 @@ void vvSlicer::AdjustResliceToSliceOrientation(vtkImageReslice *reslice) reslice->SetOutputOrigin(origin); reslice->SetOutputSpacing(spacing); reslice->UpdateInformation(); + reslice->GetOutput()->UpdateInformation(); } //------------------------------------------------------------------------------