X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvImageContour.cxx;h=c4c8c565379558161328e9e4a75530ce8f0ac8bb;hb=44c2ad927935149b19d2355f428252e05637d304;hp=a4b2a0545c273554def55ddc3b1aebeb25335994;hpb=f05dd3a888120632345251a479e953e14a117a58;p=clitk.git diff --git a/vv/vvImageContour.cxx b/vv/vvImageContour.cxx index a4b2a05..c4c8c56 100644 --- a/vv/vvImageContour.cxx +++ b/vv/vvImageContour.cxx @@ -124,6 +124,7 @@ void vvImageContour::SetColor(double r, double g, double b) { //out << __func__ << endl; for(unsigned int i=0; iGetProperty()->SetColor(r,g,b); + mSquaresActorList[i]->GetProperty()->SetOpacity(0.995); } } //------------------------------------------------------------------------------ @@ -336,6 +337,7 @@ void vvImageContour::CreateNewActor(int numImage) squaresMapper->ScalarVisibilityOff(); squaresActor->SetMapper(squaresMapper); squaresActor->GetProperty()->SetColor(1.0,0,0); + squaresActor->GetProperty()->SetOpacity(0.995); squaresActor->SetPickable(0); squaresActor->VisibilityOff(); mSlicer->GetRenderer()->AddActor(squaresActor); @@ -357,7 +359,7 @@ void vvImageContour::UpdateActor(vtkActor * actor, { //out << __func__ << endl; // Set parameter for the MarchigSquare squares->SetValue(0, threshold); - + squares->Update(); // Get image extent int* extent = mSlicer->GetImageActor()->GetDisplayExtent(); @@ -406,7 +408,7 @@ void vvImageContour::UpdateActor(vtkActor * actor, // DD(mDepth); // position[orientation] = -mDepth; // actor->SetPosition(position); - + squares->Update(); mapper->Update(); } //------------------------------------------------------------------------------