From: David Sarrut Date: Fri, 3 Feb 2012 06:57:12 +0000 (+0100) Subject: Set the contour to the same color than the overlay. X-Git-Tag: v1.4.0~298 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=bc5242a69969de59511f9c1e6fd7b78138e05e78;p=clitk.git Set the contour to the same color than the overlay. Correct bug when the user cancel the color selection. --- diff --git a/vv/vvROIActor.cxx b/vv/vvROIActor.cxx index e7f82f6..6e79456 100644 --- a/vv/vvROIActor.cxx +++ b/vv/vvROIActor.cxx @@ -166,10 +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]; + // Color of the contour is same of roi color + mContourColor[0] = mROI->GetDisplayColor()[0]; + mContourColor[1] = mROI->GetDisplayColor()[1]; + mContourColor[2] = mROI->GetDisplayColor()[2]; mImageContour[i]->SetColor(mContourColor[0], mContourColor[1], mContourColor[2]); mImageContour[i]->SetLineWidth(mContourWidth); mImageContour[i]->SetPreserveMemoryModeEnabled(true);