[vtkusers] min and max range...???

David Doria daviddoria+vtk at gmail.com
Thu Feb 11 07:41:28 EST 2010


On Thu, Feb 11, 2010 at 2:06 AM, Rakesh Patil <rakeshthp at in.com> wrote:

> Hello,
>
> Thanks to everyone to guide and help me. Now that I have successfully,
> Implemented the display of vetors(arrows). I just want to modify the
> displaying technique.
>
> Can anyone tell me, whether there is any method or technique to set the min
> and max range
> of the arrow size, based on a scalar values??
>
> For example,
> 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.
>
> Is it possible in VTK..?? Can anyone guide me to solve this..??
>
> Thanks
>
>
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.

http://www.vtk.org/Wiki/VTK/Examples/ColorLookupTable

Unless someone can point out an existing class that maps a range of values
onto a different range of values?
<http://www.vtk.org/Wiki/VTK/Examples/ColorLookupTable>
Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100211/9c105482/attachment.htm>


More information about the vtkusers mailing list