From acc12b611512da786f37438c0dc01add400c1510 Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Fri, 29 Jun 2012 14:18:56 +0200 Subject: [PATCH] Correct always white contour bug. --- vv/vvROIActor.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vv/vvROIActor.cxx b/vv/vvROIActor.cxx index 88ce281..e7f82f6 100644 --- a/vv/vvROIActor.cxx +++ b/vv/vvROIActor.cxx @@ -166,6 +166,10 @@ void vvROIActor::Initialize(double depth, bool IsVisible) { mImageContour.push_back(vvImageContour::New()); mImageContour[i]->SetSlicer(mSlicerManager->GetSlicer(i)); mImageContour[i]->SetImage(mROI->GetImage()); + // Color of the contour is "complement" of roi color + mContourColor[0] = 1-mROI->GetDisplayColor()[0]; + mContourColor[1] = 1-mROI->GetDisplayColor()[1]; + mContourColor[2] = 1-mROI->GetDisplayColor()[2]; mImageContour[i]->SetColor(mContourColor[0], mContourColor[1], mContourColor[2]); mImageContour[i]->SetLineWidth(mContourWidth); mImageContour[i]->SetPreserveMemoryModeEnabled(true); -- 2.47.1