From: David Sarrut Date: Thu, 14 Jun 2012 13:35:05 +0000 (+0200) Subject: Slightly offset the depth of contour to be in front of the overlay X-Git-Tag: v1.3.0~27^2~10 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=6e49247d08fe0af01c2a9cf53dba97ddd307077c;p=clitk.git Slightly offset the depth of contour to be in front of the overlay --- diff --git a/vv/vvROIActor.cxx b/vv/vvROIActor.cxx index 9243431..88ce281 100644 --- a/vv/vvROIActor.cxx +++ b/vv/vvROIActor.cxx @@ -169,7 +169,7 @@ void vvROIActor::Initialize(double depth, bool IsVisible) { mImageContour[i]->SetColor(mContourColor[0], mContourColor[1], mContourColor[2]); mImageContour[i]->SetLineWidth(mContourWidth); mImageContour[i]->SetPreserveMemoryModeEnabled(true); - mImageContour[i]->SetDepth(mDepth); + mImageContour[i]->SetDepth(mDepth+0.5); mImageContour[i]->HideActors(); mOverlayActors.push_back(vvBinaryImageOverlayActor::New()); @@ -207,7 +207,7 @@ void vvROIActor::SetDepth(double d) if (!mSlicerManager) return; for(int i=0; iGetNumberOfSlicers(); i++) { mOverlayActors[i]->SetDepth(d); - mImageContour[i]->SetDepth(d); + mImageContour[i]->SetDepth(d+0.5); } Update(true); }