[vtkusers] Please help on vtkLookupTable
YaoHaofeng
hfyao1983 at hotmail.com
Sun May 20 15:34:38 EDT 2007
Hi, I am new to VTK and do not know how vtkLookupTable work, I have an array of points with scalar value 0-1500, and I want to map them to different colors, so I do: vtkLookupTable *bwLut = vtkLookupTable::New(); bwLut->SetTableRange(0, 1536); bwLut->SetNumberOfColors(256); bwLut->SetHueRange (0.6667, 0.0); bwLut->SetSaturationRange (1.0, 1.0); bwLut->SetValueRange (1.0, 1.0); bwLut->Build(); vtkPolyDataMapper *mapper = vtkPolyDataMapper::New(); mapper->SetLookupTable(bwLut); mapper->SetInputConnection(clipper->GetOutputPort()); mapper->SetColorModeToMapScalars (); mapper->UseLookupTableScalarRangeOn();But the entire image is blue everywhere, please help on correctly displaying colors with scalars.thankshank
_________________________________________________________________
中国十大热门旅游景点
http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070520/152fd5c6/attachment.htm>
More information about the vtkusers
mailing list