]> Creatis software - clitk.git/commitdiff
fusion and image colormaps are now equivalent
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Fri, 27 Jan 2012 15:31:09 +0000 (16:31 +0100)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Fri, 27 Jan 2012 15:31:09 +0000 (16:31 +0100)
- changed value range to (1, 1)

vv/vvSlicerManager.cxx

index 813ba2258bc1f2b247b342f9176e5b2be8f91a4b..d9ed42e2deb448f541eaf97993db3f0eb6b1c483 100644 (file)
@@ -1184,14 +1184,15 @@ void vvSlicerManager::SetColorMap(int colormap)
   case 4:
     if (LUT == NULL)
       LUT = vtkLookupTable::New();
-    LUT->SetValueRange(0,1);
+    LUT->SetValueRange(1,1);
     LUT->SetSaturationRange(1,1);
     LUT->SetHueRange(0,1);
+    LUT->SetAlphaRange(1, 1);
     break;
   case 5:
     if (LUT == NULL)
       LUT = vtkLookupTable::New();
-    LUT->SetValueRange(0.,1);
+    LUT->SetValueRange(1,1);
     LUT->SetSaturationRange(1,1);
     LUT->SetHueRange(1,0.1);
     //LUT->SetRampToLinear();