Hi John,<br><br>Thanks. It works for default lookup table. Below is my code:<br><br>vtkSmartPointer<vtkLookupTable> lut = vtkSmartPointer<vtkLookupTable>::New();<br>lut->SetNumberOfTableValues(9);<br>lut->SetTableValue(0, 1.00, 0.00, 0.00);<br>
lut->SetTableValue(0, 1.00, 0.50, 0.00);<br>lut->SetTableValue(0, 1.00, 1.00, 0.00);<br>lut->SetTableValue(0, 0.50, 1.00, 0.00);<br>
lut->SetTableValue(0, 0.00, 1.00, 0.00);<br>
lut->SetTableValue(0, 0.00, 1.00, 0.50);<br>lut->SetTableValue(0, 0.00, 1.00, 1.00);<br>
lut->SetTableValue(0, 0.00, 0.50, 1.00);<br>
lut->SetTableValue(0, 0.00, 0.00, 1.00);<br>lut->Build();<br><br>In this case, I am unable to reverse the colous. Manually, i need to change the code to reverse i guess..<br><br>Any idea how to get it done here.?<br>
<div class="gmail_quote">On Thu, Feb 17, 2011 at 2:15 PM, John Platt <span dir="ltr"><<a href="mailto:jcplatt@dsl.pipex.com">jcplatt@dsl.pipex.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Rakesh,<br>
<br>
Have you tried<br>
<br>
SetHueRange( 2/3, 0 );<br>
Build();<br>
<br>
HTH<br>
<br>
John.<br>
<br>
----- Original Message ----- From: rakesh patil<br>
To: VTK Users<br>
Sent: Thursday, February 17, 2011 7:20 AM<br>
Subject: [vtkusers] How to reverse the colours to display contours.?<div><div></div><div class="h5"><br>
<br>
<br>
Hello,<br>
<br>
When I display contours, I use the default vtkLookupTable() to represent the colour scheme. Default is min_value is red and max_value is blue.<br>
<br>
Now what do I do in order to reverse it? I mean, min_value should be depicted with blue colour and max_value with red colour. Is there any way to do this?<br>
<br>
Thanks<br>
<br>
Regards<br>
Rakesh Patil<br>
<br>
<br>
<br></div></div>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a> <br>
<br>
</blockquote></div><br>