[vtkusers] Settings of VtkScalarBarActor
Francois Louis LAILLIER
flaillier at eldim.fr
Thu Jun 7 08:22:40 EDT 2007
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070607/3663e81c/attachment.htm>
More information about the vtkusers
mailing list