]> Creatis software - clitk.git/blobdiff - vv/vvImageContour.cxx
Initialize a variable
[clitk.git] / vv / vvImageContour.cxx
index 1c265f3aabe97682c264df479e372ee6c0d40204..ac43af2cc6a5467be57478aea07c69607f8b5b14 100644 (file)
@@ -124,7 +124,7 @@ void vvImageContour::SetColor(double r, double g, double b)
 { 
   for(unsigned int i=0; i<mSquaresActorList.size(); i++) {
     mSquaresActorList[i]->GetProperty()->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 +234,7 @@ void vvImageContour::UpdateWithPreserveMemoryMode()
     if (mPreviousTslice != -1) mSquaresActorList[mPreviousTslice]->VisibilityOff();
   }
 
-  mSlicer->Render();
+  //mSlicer->Render();
 }
 //------------------------------------------------------------------------------
 
@@ -337,7 +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->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);