[vtkusers] Out of range colors in LookupTable in VTK 5.10

Fernando Nellmeldin f.nellmeldin at open-engineering.com
Thu Mar 30 07:56:40 EDT 2017


Hello.
I have an unstructuredgrid with point data which I display as a color map
in the model.
Let's say the range of the values is [100, 500] and I map blue to 100 and
red to 500. I create a lookuptable with the range of HSV values for the
colors I want, and everything works as expected.
Problem is, I would like to have a special color for values below 100 and
values over 500 (gray, for example).

I do know that this feature exist from VTK 6 as
vtkLookupTable::setBelowRangeColor and vtkLookupTable::setAboveRangeColor.
But, for compatibility reasons, we are stuck -for the moment- with VTK
5.10.

Is there an easy way to accomplish this with VTK 5.10? I've seen the code
inside vtkLookupTable but there were a lot of changes and I can't find the
way to do it by myself without modifying my own version of VTK (by editing
vtkLookupTable in VTK 5.10 with the code added in VTK 6).

Thank you.

-- 
*Fernando NELLMELDIN*
Software Engineer
*_______________________________________________________________*

*Open Engineering s.a.*

Rue Bois Saint-Jean 15/1
B-4102 Seraing (Belgium)
Tel: +32.4.353.30.34

http://www.open-engineering.com
https://www.linkedin.com/company/open-engineering?trk=biz-companies-cym

*_________________________________________________________________________*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170330/9fadbe3b/attachment.html>


More information about the vtkusers mailing list