Figured it out !!<br><br>SetUseLookupTableScalarRange(1) in the mapper ..<br><br>Darshan<br><br><div class="gmail_quote">On Wed, Sep 19, 2012 at 1:41 PM, Darshan Pai <span dir="ltr"><<a href="mailto:darshanpai@gmail.com" target="_blank">darshanpai@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have a polydata which I have textured with scalar points sampled from a volume . This volume has a vtkImagePlaneWidget cutting through it in the x-direction. <br>
My initial setup was to extract the window/level from the vtkImagePlaneWidget, creat a vtkWindowLevelLookuptable and set the lookuptable to the polydata. <br>
<br>Sometimes the texture is dark. What my goal is when i change the window/level on the vtkImagePlaneWidget , the texture shading should change <br>as well. I do have a windowlevel interaction event I catch to do this , but i see that even though I update the values of the vtkWindowLevelLookupTable, the polydata shading does not change. <br>
<br>I tried calling Modified() on the polydata,lookuptable, the mapper etc. but it does not change . <br><br>What might I be missing here. Or is this even possible ?<span class="HOEnZb"><font color="#888888"><br><br>Darshan<br>
</font></span></blockquote></div><br>