From: enk Date: Wed, 19 Dec 2007 09:24:22 +0000 (+0000) Subject: Fix for bug X-Git-Tag: mergeto_BR_QT4_Dev_17Jan08~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=69d4fff9d4c0c19b6be1c9dbd468494bfa36f043;p=modules%2Fvisu.git Fix for bug Bug IPAL13797 Sweep doesn't work with opacity --- diff --git a/src/PIPELINE/VISU_LookupTable.cxx b/src/PIPELINE/VISU_LookupTable.cxx index b6fd342d..8c4dfc90 100644 --- a/src/PIPELINE/VISU_LookupTable.cxx +++ b/src/PIPELINE/VISU_LookupTable.cxx @@ -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(cptr[0]*0.30 + cptr[1]*0.59 + cptr[2]*0.11 + 0.5); *output++ = static_cast(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(cptr[0]*0.30 + cptr[1]*0.59 + cptr[2]*0.11 + 0.5); input += inIncr;