<div>Yes Joseph. I also personally feel there should be some efficient way to implement this. Anyhow, everytime, looping will make app run slower (in worst case where number of colours are more) </div>
<div> </div>
<div>Anyone has any other solution for this?<br></div>
<div class="gmail_quote">On Thu, Feb 17, 2011 at 5:50 PM, Joseph Melnyk <span dir="ltr"><<a href="mailto:JMelnyk@pile.com">JMelnyk@pile.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">> From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a> [mailto:<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf Of rakesh patil<br>
<div class="im">><br>> Thanks. It works for default lookup table. Below is my code:<br>><br></div>
<div class="im">> 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><br></div>You've got the right approach. Just let vtkLookupTable build, then loop through the colors, grabbing one from the end and one from the beginning and swapping them. Then mark it as modified and you should be good to go.<br>
<br>I'd love to find a more efficient method. I briefly tried the SetHueRange idea but it appears I'll need some adjustments to make it work.<br><br>__Scanned by MessageLabs<br></blockquote></div><br>