[vtkusers] simple scalar bar question.....

John Platt jcplatt at lineone.net
Tue Jul 13 16:31:47 EDT 2004


Nikhil,

 

Build your own LUT and use this instead of the Mapper's default LUT. The
hue range determines whether red is low or high. You will find more
information if you search the archives.

 

m_vtkHSVLUT = vtkLookupTable::New();

m_vtkHSVLUT ->SetNumberOfTableValues( 16 );

m_vtkHSVLUT ->SetHueRange( 0.66667, 0.0 );

m_vtkHSVLUT ->SetSaturationRange( 1, 1 );

m_vtkHSVLUT ->SetValueRange( 1, 1 );

m_vtkHSVLUT ->Build();

 

HTH

John.

 

-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
Behalf Of nikhil butala
Sent: 13 July 2004 20:21
To: vtkusers at vtk.org
Subject: Re: [vtkusers] simple scalar bar question.....

 

I am just using the default lookup table.

jarv0075 <jarv0075 at umn.edu> wrote: 

The order your values are displayed are in accordance to the order they
are
in your lookup table. So if you would like to reverse them, just reverse
your lookup table.


On 13 Jul 2004, nikhil butala wrote:
> --0-902519565-1089741581=:32351
> Content-Type: text/plain; charset=us-ascii
> 
> Dear VTK Users,
> 
> In my application, By default VTK assigns red color to
> 0(zero) value and blue color to the maximum value in scalar bar. 
> Does anyone know a simple method to reverse this. i.e. give blue color
to
> zero value and red to maximum value??
> 
> thanks,
> Nikhil Butala
> 
> --0-902519565-1089741581=:32351
> Content-Type: text/html; charset=us-ascii
> 
> 

Dear VTK Users,


> 


> 


> In
> my application, By default VTK assigns red color to 0(zero) value and
blue
> color to the maximum value in scalar bar. 


> 

Does anyone know a simple method to reverse this. i.e. give blue
color
> to zero value and red to maximum value??


> 


> 

thanks,


> 

Nikhil Butala


> --0-902519565-1089741581=:32351--
> 
---------------------------------------
Timothy R. Jarvis 
---------------------------------------
Graduate Research Assistant 
International Neuroimaging Consortium
VA Medical Center
612-467-2619
http://www.neurovia.umn.edu
---------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040713/17d2c89e/attachment.htm>


More information about the vtkusers mailing list