[vtkusers] vtkScalarBarActor - how to set it's range.

Amy Henderson amy.henderson at kitware.com
Wed Aug 15 08:45:35 EDT 2001


The vtkScalarBarActor is not limited to the range 0 to 1.  Did you set the 
ScalarRange of vtkElevationFilter?  It defaults to the range 0 to 1, so if 
you didn't set it to something else, that would explain the range of your 
scalar bar actor.

- Amy

At 11:14 AM 8/15/2001 +1000, Andrew J. P. Maclean wrote:

>Does the scalar bar actor only have a range of 0 to 1? Whatever I do, I 
>can only get a range of 0 to 1. In contrast if I use vtkAxes, the 
>dimensions of the object are reflected correctly. Why does vtkaxes work in 
>the expected fashion and the Scalar Bar actor doesn t? I am using 
>vtkElevationFilter and then feeding the scalar range from this into the 
>lookup table (it always seems to range from 0 to 1). So I guess it is 
>something to do with the filtering at this stage. I want the scalar bar to 
>reflect the colours of a height map on the surface.
>
>
>
>I looked for examples and found MultidimensionalSolution.tcl, 
>PropPicker.tcl and ScalarBar.tcl, however all of these render a scalar bar 
>with a range of 0 to 1.
>
>
>
>Thanks
>
>    Andrew
>
>
>___________________________________________
>Andrew J. P. Maclean
>
>
>
>Postal:
>
>Australian Centre for Field Robotics
>The Rose Street Building J04
>The University of Sydney  2006  NSW
>AUSTRALIA
>
>Room:
>
>106
>
>Phone:
>
>+61 2 9351 3283
>
>Fax:
>
>+61 2 9351 7474
>
>
>
><http://www.acfr.usyd.edu.au/>http://www.acfr.usyd.edu.au/
>
>___________________________________________
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20010815/2a61e682/attachment.htm>


More information about the vtkusers mailing list