[vtkusers] vtkScalarBarActor - how to set it's range.
Andrew J. P. Maclean
a.maclean at acfr.usyd.edu.au
Wed Aug 15 19:19:50 EDT 2001
Many thanks to Amy. It now works perfectly.
___________________________________________
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/
___________________________________________
-----Original Message-----
From: Amy Henderson [mailto:amy.henderson at kitware.com]
Sent: Wednesday, 15 August 2001 22:46
To: a.maclean at acfr.usyd.edu.au; vtkusers at public.kitware.com
Subject: Re: [vtkusers] vtkScalarBarActor - how to set it's range.
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/
___________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20010816/3d37b38b/attachment.htm>
More information about the vtkusers
mailing list