[vtkusers] Settings of VtkScalarBarActor

Geoframer geoframer at gmail.com
Thu Jun 7 19:16:40 EDT 2007


Fracois,

The vtkLookupTable has a method called SetTableRange. With this method you
can set the range of your lookup table and this will be visualised in your
scalar bar.
So your solution would be :

LuT.SetTableRange 0 256

Ofcourse this 'solution' does not take into account how you build your
lookuptable or what values it presents...

Regards - Geofram

On 6/7/07, Francois Louis LAILLIER <flaillier at eldim.fr> wrote:
>
>  Hello Vtkusers, I have a color scale (a vtkScalarBarActor) which displays
> the Look Up Table that I apply on my volume.
>
>
>
> But the Label is scaled 0 to 1. And I want display 0 to 256.
>
>
>
> How can I do to change the scale's label?
>
> Can apply a operation on the "%6.1f"  to multiply the result by 256?
>
> Do you have some idea?
>
>
>
> VB code:
>
>
>
> Dim ColorScale As vtkScalarBarActor
>
> Set ColorScale = New vtkScalarBarActor
>
> ColorScale.SetTitle Properties.Cls_Scale_Title
>
> ColorScale.SetLookupTable LuT
>
> ColorScale.SetOrientationToVertical
>
> ColorScale.SetLabelFormat "%6.1f"  'How can change this?
>
>
>
> Renderer.AddActor ColorScale
>
> RenWin.Render
>
>
>
>
>
> Thanks' in advance
>
> Best regards, Francois Louis.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070608/05dd7313/attachment.htm>


More information about the vtkusers mailing list