[vtkusers] How to set the color of the vtkScalarBarActor?

Wenlong Wang scc.wwl at gmail.com
Thu Mar 7 12:35:32 EST 2013


Hi, all

I am trying to use vtkScalarBarActor to reveal the distance between two
surfaces. I read the example at

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ScalarBarActor

However, the bottom and the top of the bar have the same color. Thus it
cannot accurately reveal if the distance is the largest or smallest.

My question is, how can I change the color of the ends of the bar?

Many thanks.

Best wishes
Wenlong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130307/25fb139f/attachment.htm>


More information about the vtkusers mailing list