]> Creatis software - clitk.git/commitdiff
Slightly offset the depth of contour to be in front of the overlay
authorDavid Sarrut <david.sarrut@gmail.com>
Thu, 14 Jun 2012 13:35:05 +0000 (15:35 +0200)
committerDavid Sarrut <david.sarrut@gmail.com>
Thu, 14 Jun 2012 13:35:05 +0000 (15:35 +0200)
vv/vvROIActor.cxx

index 9243431949b3b822082a48dca9a26476552f1e1c..88ce28160aff5aafcae5b6c4e33561c1da3caf4d 100644 (file)
@@ -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; i<mSlicerManager->GetNumberOfSlicers(); i++) {  
     mOverlayActors[i]->SetDepth(d);
-    mImageContour[i]->SetDepth(d);
+    mImageContour[i]->SetDepth(d+0.5);
   }
   Update(true);
 }