From: enk Date: Wed, 19 Dec 2007 10:28:28 +0000 (+0000) Subject: Fix for bug X-Git-Tag: V3_2_10~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6024214ce0ae19fab5697d57f46b549e2632c780;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;