[vtkusers] question about vtkLookupTable
    Luke J West 
    ljw at noc.soton.ac.uk
       
    Mon Oct  1 06:59:16 EDT 2007
    
    
  
Hi Jim,
  lut->SetTableRange(scalar_min,scalar_max);
  lut->SetHueRange(0,1);        // play
  lut->SetSaturationRange(1,1); // with
  lut->SetValueRange(1,1);      // these
and make sure you invoke this on your mapper...
  Mapper->SetScalarRange(scalar_min,scalar_max);
you can also use
  lut->SetAlphaRange(mn,mx); // for opacity
and if you want to edit the table entries, look at SetTableValue(...), but make
sure you invoke lut->Build() first if you don't want a SEGV.
Luke
eValue(lut->GetIndex(1.e8),rgba);
Quoting jim yu <long353 at msn.com>:
> hi, everybody
>  
> could someone tell me how the vtkLookupTable map a scalar value to a color?
>  
> i've only seen the SetTableValue method. it seems to set a color value at a
> index position of the table. but no scalar value is mentioned.
>  
> thanks a lot
>  
> jim
> _________________________________________________________________
> Explore the seven wonders of the world
> http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
-----------------------------------------------------------------------
National Oceanography Centre, Southampton :: http://www.noc.soton.ac.uk
    
    
More information about the vtkusers
mailing list