<div>Try:</div>
<div>mapper->SetScalarRange(bwLut->GetTableRange());<br><br><br> </div>
<div><span class="gmail_quote">On 5/22/07, <b class="gmail_sendername">Janny Dong</b> <<a href="mailto:janny.dong@gmail.com">janny.dong@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Did you try <br><br>mapper->SetScalarRange()<br>mapper->ScalarVisibilityOn()<br><br>btw, I am also new so I can't guarantee it works :P
<br><br>Janny<br><br>
<div><span class="gmail_quote">On 5/20/07, <b class="gmail_sendername">YaoHaofeng</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:hfyao1983@hotmail.com" target="_blank">hfyao1983@hotmail.com
</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div>
<div style="TEXT-ALIGN: left">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:<br><br> vtkLookupTable *bwLut = vtkLookupTable::New();
<br> bwLut->SetTableRange(0, 1536);<br> bwLut->SetNumberOfColors(256);<br> bwLut->SetHueRange (0.6667, 0.0);<br> bwLut->SetSaturationRange (1.0, 1.0);<br> bwLut->SetValueRange (1.0, 1.0);<br>
bwLut->Build();<br><br> vtkPolyDataMapper *mapper = vtkPolyDataMapper::New();<br> mapper->SetLookupTable(bwLut);<br> mapper->SetInputConnection(clipper->GetOutputPort());<br> mapper->SetColorModeToMapScalars ();
<br> mapper->UseLookupTableScalarRangeOn();<br><br>But the entire image is blue everywhere, please help on correctly displaying colors with scalars.<br><br>thanks<br><br>hank <br> </div><br>
<hr>
中国十大热门旅游景点 <a onclick="return top.js.OpenExtLink(window,event,this)" href="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" target="_blank">了解更多信息!</a>
</div><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br><br>___________________________________________<br>Andrew J. P. Maclean<br>Centre for Autonomous Systems<br>The Rose Street Building J04<br>The University of Sydney 2006 NSW
<br>AUSTRALIA<br>Ph: +61 2 9351 3283<br>Fax: +61 2 9351 7474<br>URL: <a href="http://www.cas.edu.au/">http://www.cas.edu.au/</a><br>___________________________________________<br>