From 69d4fff9d4c0c19b6be1c9dbd468494bfa36f043 Mon Sep 17 00:00:00 2001 From: enk Date: Wed, 19 Dec 2007 09:24:22 +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