<div dir="ltr">Hi Bea,<div><br></div><div>There is something missing from your explanation: how are you setting the scalars for your points? The lookup table maps scalars to colors, and scalars are not changed by vtkTransformFilter.</div><div><br></div><div> - David</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 17, 2017 at 12:50 AM, Schober Beatrix [STEMMER IMAGING GmbH] <span dir="ltr"><<a href="mailto:b.schober@stemmer-imaging.de" target="_blank">b.schober@stemmer-imaging.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="DE" link="#0563C1" vlink="#954F72">
<div class="m_3667309914636315640WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Good morning!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I am a bit confused about following behaviour. I tried to find an answer / solution, but spent already more than a day with that. Maybe the behaviour is correct, I just misunderstand
it?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">I have a point cloud (VtkPolyData), using a VtkTransform Filter to scale the z-values. As I want the points to be displayed colored, I use the vtkLookupTable as well as the ScalarBarWidget
to display the lookup table.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Before scaling my z-range is 98 – 255, after scaling (2*) the range is 196 – 510.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">If I do not change the VtkLookupTable’s table range (it is still 98 – 255), the colors are mapped correctly from 196 to 510. If I change the table range to 196 – 510 and the
mapper’s scalar range to 196 – 510, in order to get a correct valued ScalarBarWidget (range 196 – 510), only colors from 196 to 255 are mapped, everything else not. (The picker shows the correctly scaled point data.)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">My questions: Why is the mapping wrong if I update the scalar range / lookup table range? How can I achieve a correctly scaled ScalarBarWidget (196 – 510)?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Thank you very much in advance for your support!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Bea</span></p></div></div></blockquote></div><br></div></div></div>