From a0be6b5e514b3128a37033b7757a9015378e560e Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 23 Jun 2008 11:36:49 +0000 Subject: [PATCH] Bug VISU200819960 - ?Behaviour? of distributed curve near scalar bar is different during of Sweep operation for different presentations. --- src/PIPELINE/VISU_ColoredPL.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PIPELINE/VISU_ColoredPL.cxx b/src/PIPELINE/VISU_ColoredPL.cxx index 1190f67f..dc046b8f 100644 --- a/src/PIPELINE/VISU_ColoredPL.cxx +++ b/src/PIPELINE/VISU_ColoredPL.cxx @@ -225,7 +225,8 @@ VISU_ColoredPL // Initialize numbers of colored cells with zero this->myDistribution->FillComponent(0, 0); // Create a lookup table to compute a color of a cell - vtkLookupTable* lut = GetMapperTable(); + VISU_LookupTable* lut = GetMapperTable(); + vtkFloatingPointType aMapScale = lut->GetMapScale(); // Get scalar values from the input data to calculate their distribution within cells vtkDataArray* dataArr; // Dtermine where we have to take scalars from: cells data or points data. @@ -253,7 +254,7 @@ VISU_ColoredPL // For each scalar value for(vtkIdType aValId = 0; aValId < aNbVals; aValId++){ // Find the color index for this scalar value - idx = lut->GetIndex(*(dataArr->GetTuple(aValId))); + idx = lut->GetIndex(*(dataArr->GetTuple(aValId)) * aMapScale); // Increment the distribution value for this color index cnt = this->myDistribution->GetValue(idx); this->myDistribution->SetValue(idx, cnt + 1); -- 2.39.2