<div><div class="gmail_quote">On Thu, Feb 11, 2010 at 2:06 AM, Rakesh Patil <span dir="ltr"><<a href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br><br>Thanks to everyone to guide and help me. Now that I have successfully,<br>Implemented the display of vetors(arrows). I just want to modify the displaying technique.<br><br>Can anyone tell me, whether there is any method or technique to set the min and max range <br>
of the arrow size, based on a scalar values??<br><br>For example,<br>for a particular unstructured grid, i have a scalar array and it ranges from 0 to say 2500. THis is a min and max range. Based on the values, the length of arrow shaft should vary. i.e. where the scalar is 0, the arrow should be displayed must be of length say 5 pixel. and whereever 2500 is there, the length can be say 15 pixels. so accordingly the values have to be mapped and should be displayed. <br>
<br>Is it possible in VTK..?? Can anyone guide me to solve this..??<br><br>Thanks<br><br></blockquote><div><br></div><div>So you want to map a range of values onto a different range of values. This does not do exactly what you want, but you may be able to look into the code of vtkLookupTable to get an idea of what to do. vtkLookupTable maps a range of values onto colors.</div>
<div><br></div><a href="http://www.vtk.org/Wiki/VTK/Examples/ColorLookupTable">http://www.vtk.org/Wiki/VTK/Examples/ColorLookupTable</a><div><br></div><div>Unless someone can point out an existing class that maps a range of values onto a different range of values?</div>
<div><a href="http://www.vtk.org/Wiki/VTK/Examples/ColorLookupTable"></a><br clear="all">Thanks,<br><br></div><div>David</div></div></div>