[vtkusers] vtkScalarBarActor

Alexander MacLennan alex.maclennan at gmail.com
Thu May 3 06:05:11 EDT 2007


Hi,

I am having some trouble with the vtkScalarBarActor (Java + vtk 5.1.0 )


When using a linear scale in my lookup table:

        vtkLookupTable lut = new vtkLookupTable();

        lut.SetNumberOfColors(1024);
        lut.SetHueRange(0.15, 1.0);
        lut.SetSaturationRange(1.0, 1.0);
        lut.SetValueRange(1.0, 1.0);
        lut.SetAlphaRange(1.0, 1.0);
        lut.SetScaleToLinear();

The actor behaves. Colours and labels are fine.

But if I set:

lut.SetScaleToLog10();

I get a single colour ( yellow ) and NAN across the scalar bar

Does the scalar bar work for Log10 ?

Is there some no-brainer that I have missed?

cheers

alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070503/bb2d3572/attachment.htm>


More information about the vtkusers mailing list