X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvImageContour.cxx;h=68dc72059a32d5cf02ac3424720149e6ffd9fc7f;hb=92044073d6c8ff23ca0ebb8664e46c0a8cf86ea0;hp=1c265f3aabe97682c264df479e372ee6c0d40204;hpb=05413db25dc1daf6d79b45caa2a75668bf5e13e7;p=clitk.git diff --git a/vv/vvImageContour.cxx b/vv/vvImageContour.cxx index 1c265f3..68dc720 100644 --- a/vv/vvImageContour.cxx +++ b/vv/vvImageContour.cxx @@ -38,6 +38,7 @@ vvImageContour::vvImageContour() mDisplayModeIsPreserveMemory = true; SetPreserveMemoryModeEnabled(true); mPreviousOrientation = -1; + mPreviousValue=0; mDepth = 1.0; mSlice = 0; } @@ -124,7 +125,7 @@ void vvImageContour::SetColor(double r, double g, double b) { for(unsigned int i=0; iGetProperty()->SetColor(r,g,b); - mSquaresActorList[i]->GetProperty()->SetOpacity(0.995); + mSquaresActorList[i]->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL } } //------------------------------------------------------------------------------ @@ -234,7 +235,7 @@ void vvImageContour::UpdateWithPreserveMemoryMode() if (mPreviousTslice != -1) mSquaresActorList[mPreviousTslice]->VisibilityOff(); } - mSlicer->Render(); + //mSlicer->Render(); } //------------------------------------------------------------------------------ @@ -337,7 +338,7 @@ void vvImageContour::CreateNewActor(int numImage) squaresMapper->ScalarVisibilityOff(); squaresActor->SetMapper(squaresMapper); squaresActor->GetProperty()->SetColor(1.0,0,0); - squaresActor->GetProperty()->SetOpacity(0.995); + squaresActor->GetProperty()->SetOpacity(0.995); //in order to get VTK to turn on the alpha-blending in OpenGL squaresActor->SetPickable(0); squaresActor->VisibilityOff(); mSlicer->GetRenderer()->AddActor(squaresActor);