From: Simon Rit Date: Mon, 27 Jun 2011 09:48:47 +0000 (+0200) Subject: Removed call to UpdateOrientation in SetFusion and SetOverlay to avoid X-Git-Tag: v1.3.0~305 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=fa8ffff2bc630030df29be49e0779da63398d7ba;p=clitk.git Removed call to UpdateOrientation in SetFusion and SetOverlay to avoid changing slice when reloading. --- diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index 6b52ea1..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); } }