]> Creatis software - clitk.git/commitdiff
Set colormaps even if corresponding actor is not visible
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 30 May 2011 15:07:31 +0000 (17:07 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Mon, 30 May 2011 15:07:31 +0000 (17:07 +0200)
vv/vvSlicerManager.cxx

index 08ae8cb520d756d8e2bac1011f2fd6c7b5967ae1..9ff5a3cae35ce7e0e26143e1a176225a37d506e3 100644 (file)
@@ -1120,7 +1120,7 @@ void vvSlicerManager::SetColorMap(int colormap)
       fusLUT = NULL;
   }
   for ( unsigned int i = 0; i < mSlicers.size(); i++) {
-    if (mSlicers[i]->GetOverlay() && mSlicers[i]->GetOverlayActor()->GetVisibility()) {
+    if (mSlicers[i]->GetOverlay()) {
       vtkLookupTable* supLUT = vtkLookupTable::New();
       supLUT->SetTableRange(range[0],range[1]);
       supLUT->SetValueRange(1,1);
@@ -1146,7 +1146,7 @@ void vvSlicerManager::SetColorMap(int colormap)
     } else {
       mSlicers[i]->GetWindowLevel()->SetLookupTable(LUT);
     }
-    if (mSlicers[i]->GetFusion() && mSlicers[i]->GetFusionActor()->GetVisibility()) {
+    if (mSlicers[i]->GetFusion()) {
       mSlicers[i]->GetFusionActor()->SetOpacity(double(mFusionOpacity)/100);
       mSlicers[i]->GetFusionMapper()->SetLookupTable(fusLUT);
       mSlicers[i]->GetFusionMapper()->SetWindow(mFusionWindow);