]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug
authorenk <enk@opencascade.com>
Wed, 19 Dec 2007 09:24:22 +0000 (09:24 +0000)
committerenk <enk@opencascade.com>
Wed, 19 Dec 2007 09:24:22 +0000 (09:24 +0000)
Bug IPAL13797
Sweep doesn't work with opacity

src/PIPELINE/VISU_LookupTable.cxx

index b6fd342d3e2b00e56f5625b7db8da98ab430211c..8c4dfc9008c49672de178fd7c26a7c4163186b56 100644 (file)
@@ -412,7 +412,7 @@ VISU_LookupTableMapData(vtkLookupTable *self,
         {
         while (--i >= 0) 
           {
-          cptr = VISU_LinearLookup(*input, table, maxIndex, shift, scale, bicolor); 
+          cptr = VISU_LinearLookup(*input, table, maxIndex, shift, scale*theMapScale, bicolor); 
           *output++ = *cptr++;
           *output++ = *cptr++;
           *output++ = *cptr++;
@@ -424,7 +424,7 @@ VISU_LookupTableMapData(vtkLookupTable *self,
         {
         while (--i >= 0) 
           {
-          cptr = VISU_LinearLookup(*input, table, maxIndex, shift, scale, bicolor); 
+          cptr = VISU_LinearLookup(*input, table, maxIndex, shift, scale*theMapScale, bicolor); 
           *output++ = *cptr++;
           *output++ = *cptr++;
           *output++ = *cptr++;
@@ -435,7 +435,7 @@ VISU_LookupTableMapData(vtkLookupTable *self,
         {
         while (--i >= 0) 
           {
-          cptr = VISU_LinearLookup(*input, table, maxIndex, shift, scale, bicolor); 
+          cptr = VISU_LinearLookup(*input, table, maxIndex, shift, scale*theMapScale, bicolor); 
           *output++ = static_cast<unsigned char>(cptr[0]*0.30 + cptr[1]*0.59 + 
                                                  cptr[2]*0.11 + 0.5);
           *output++ = static_cast<unsigned char>(cptr[3]*alpha);
@@ -446,7 +446,7 @@ VISU_LookupTableMapData(vtkLookupTable *self,
         {
         while (--i >= 0) 
           {
-          cptr = VISU_LinearLookup(*input, table, maxIndex, shift, scale, bicolor); 
+          cptr = VISU_LinearLookup(*input, table, maxIndex, shift, scale*theMapScale, bicolor); 
           *output++ = static_cast<unsigned char>(cptr[0]*0.30 + cptr[1]*0.59 + 
                                                  cptr[2]*0.11 + 0.5);
           input += inIncr;