[vtkusers] Scalar bar
Matthieu Ferrant
ferrant at tele.ucl.ac.be
Wed May 30 04:11:44 EDT 2001
hi,
thanks for your response, John.
Something else has been puzzling me for a while with the scalar bar :
the first value is always displayed below the scalar bar, it's almost as
if the font was subscript. So if you display the scalar bar vertically
at position 0 0, you don't see the first label, it lives outside the
viewing window. Only thing that seems to do is to display the scalar bar
around 0 20, but then it looks pretty odd. Attached is an illustration
of this problem.
Does anyone know how to lift the labels that are next to the scalar bar
? If someone knows where to modify that in the source code, that's fine
too.
thanks,
matt
> >between negative and positive values, I would like the 0 scalar to
> >appear next to its corresponding color in the bar. Is it possible to
> >enforce this ? Otherwise, if I use two separate color bars, how do I
>
> Only (AFAIK) by carefully choosing how many labels to display and the range
> (ie 0->100 with 11 labels, or -50 to +50 with same or whatever), it's a bit
> hit and miss and could do with some improvement.
>
> >Also, when shifting from vtk2.4 to vtk3.2 the scalar bar completely
> >messed up the colors, while the actors did not. How do I prevent this
> >from happening ?
>
> I might have fixed this recently. Actors (sharing a lookuptable) with
> different scalarranges were each setting the lookuptable range which in
> turn made the scalarbar confused and wrong. I didn't touch the scalarbar,
> but added a flag to the mappers to make them only use the existing
> lookuptable range. If you are willing to try a nightly release, give it a
> whirl...
>
> ttfn
>
> JB
--
M.Ferrant, Ph.D.
UCL/TELE Room A-157 Place du Levant, 2 B-1348LLN - Belgium
Tel. +32-10-478073 Fax. : +32-10-472089
http://www.tele.ucl.ac.be/MEMBERS/Ferrant_Matthieu_e.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scalbar.gif
Type: image/gif
Size: 9761 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20010530/27d15137/attachment.gif>
More information about the vtkusers
mailing list