From 6024214ce0ae19fab5697d57f46b549e2632c780 Mon Sep 17 00:00:00 2001 From: enk Date: Wed, 19 Dec 2007 10:28:28 +0000 Subject: [PATCH] Fix for bug Bug IPAL13797 Sweep doesn't work with opacity --- src/PIPELINE/VISU_LookupTable.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.39.2