From 6e49247d08fe0af01c2a9cf53dba97ddd307077c Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Thu, 14 Jun 2012 15:35:05 +0200 Subject: [PATCH] Slightly offset the depth of contour to be in front of the overlay --- vv/vvROIActor.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.45.1