[vtkusers] VtkLookupTable and ScalarBar
Andrew Maclean
andrew.amaclean at gmail.com
Sun Aug 2 19:38:42 EDT 2015
You need the class vtkColorSeries:
http://www.vtk.org/doc/nightly/html/classvtkColorSeries.html
The tests should give you a good idea about usage.
I would suggest starting with one of the Brewer Diverging enumerations and,
if necessary, creating a custom one. This may also help:
http://colorbrewer2.org/
For somewhat complex examples that use this class, see:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs
and
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvatureBandsWithGlyphs
This may also be of use:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/LUTUtilities
There are also corresponding python versions of the same name in the VTK
examples.
Regards
Andrew
> ---------- Forwarded message ----------
> From: Ram Sampath <ram at centroidpic.com>
> To: vtkusers <vtkusers at vtk.org>
> Cc:
> Date: Sun, 2 Aug 2015 16:12:24 -0700
> Subject: [vtkusers] VtkLookupTable and ScalarBar
>
> Hello Everyone:
>
> I was wondering if there's any sample code in which the lookup table is
> from blue to white to red. The SetHueRange and teh SetSatRange methods only
> provide two controls min and max and it would be great to be able to set
> the mid value of the lookup to white as I see in some VTK terrain
> visualization examples.
>
> I have attached a sample image of what I am thinking of.
>
>
> Thank you.
> Ram.
>
>
--
___________________________________________
Andrew J. P. Maclean
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150803/5fd998d2/attachment.html>
More information about the vtkusers
mailing list