From: ouv Date: Mon, 23 Jun 2008 11:36:49 +0000 (+0000) Subject: Bug VISU200819960 - ?Behaviour? of distributed curve near scalar bar is different... X-Git-Tag: TG_VISU_2008_2008-06-26~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a0be6b5e514b3128a37033b7757a9015378e560e;p=modules%2Fvisu.git Bug VISU200819960 - ?Behaviour? of distributed curve near scalar bar is different during of Sweep operation for different presentations. --- 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);