<div dir="ltr"><div>You need the class vtkColorSeries: </div><div><a href="http://www.vtk.org/doc/nightly/html/classvtkColorSeries.html">http://www.vtk.org/doc/nightly/html/classvtkColorSeries.html</a></div><div><br></div><div>The tests should give you a good idea about usage.</div><div>I would suggest starting with one of the Brewer Diverging enumerations and, if necessary, creating a custom one. This may also help: <a href="http://colorbrewer2.org/">http://colorbrewer2.org/</a></div><div><br></div><div>For somewhat complex examples that use this class, see: </div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs</a></div><div>and</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvatureBandsWithGlyphs">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvatureBandsWithGlyphs</a></div><div><br></div><div>This may also be of use:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/LUTUtilities">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/LUTUtilities</a><br></div><div><br></div><div>There are also corresponding python versions of the same name in the VTK examples.</div><div><br></div><div>Regards</div><div> Andrew</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>---------- Forwarded message ----------<br>From: Ram Sampath <<a href="mailto:ram@centroidpic.com">ram@centroidpic.com</a>><br>To: vtkusers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>Cc: <br>Date: Sun, 2 Aug 2015 16:12:24 -0700<br>Subject: [vtkusers] VtkLookupTable and ScalarBar<br><div dir="ltr"><br><div>Hello Everyone:</div><div><br></div><div> 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.</div><div><br></div><div> I have attached a sample image of what I am thinking of.</div><div><br></div><div><br></div><div> Thank you.</div><div>Ram.</div></div>
<br></blockquote></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________</div>
</div></div>