<br>hi..<br><br>You mean to say, using that mapping logic, i'll get a new array. This array i need to set as a scalar for grid and scale by glyphs by scalars..??<br><br>Thanks<br><blockquote><br>---------- Original message ----------<br>From:David Doria< daviddoria+vtk@gmail.com ><br>Date: 11 Feb 10 18:11:28<br>Subject: Re: [vtkusers] min and max range...???<br>To: rakeshthp@in.com<br><br><div><div class="gmail_quote">On Thu, Feb 11, 2010 at 2:06 AM, Rakesh Patil <span dir="ltr"><<a target=\"_blank\" target="\"_blank\"" href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span> wrote:<br><font color="#000000"></font><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#000000">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></font></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 target=\"_blank\" target="\"_blank\"" 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 target=\"_blank\" target="\"_blank\"" href="http://www.vtk.org/Wiki/VTK/Examples/ColorLookupTable"></a><br clear="all">Thanks,<br><br></div><div>David</div></div></div>
</blockquote> <br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px arial; color:#1E56A1; text-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>