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

Bill Lorensen bill.lorensen at gmail.com
Sat Mar 9 15:19:13 EST 2013


Change

hueLut->SetHueRange (0, 1);
to
hueLut->SetHueRange (0, .667);



On Thu, Mar 7, 2013 at 12:35 PM, Wenlong Wang <scc.wwl at gmail.com> wrote:

> 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
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130309/752f009c/attachment.htm>


More information about the vtkusers mailing list