[vtkusers] HELP!!!!  Color scale and Slice display
    Quentin Noirhomme 
    noirhom at tele.ucl.ac.be
       
    Tue Mar 19 05:48:42 EST 2002
    
    
  
On Tue, 19 Mar 2002, Arsene ELLA wrote:
> Hi,
> 
> I have already sent several questions without any answer. What's wrong?
> Sorry but I've got anothers:
> 
> 1) To build a 256 color lookup table from blue to red, the vtk following 
> part of code is use:
> -----------------------------------------
> :
> :
> vtkLookupTable *lut = vtkLookupTable::New();
> lut->SetHueRange(0.66667, 0.0);
> lut->SetSaturationRange(1, 1);
> lut->SetValueRange(1, 1);
> lut->SetAlphaRange(1, 1);
> lut->SetNumberOfColors(256);
> lut->Build();
> :
> :
> -----------------------------------------
> How can I change those values to build:
> * gray color scale (variation of gray level)?
To build a black and withe  lookup table:
 lut->SetHueRange(0.0, 0.0);
 lut->SetSaturationRange(0, 0);
 lut->SetValueRange(0.0, 1);
Quentin
    
    
More information about the vtkusers
mailing list