[vtkusers] Dynamically changing color

Darshan Pai darshanpai at gmail.com
Thu Sep 20 14:01:15 EDT 2012

Figured it out !!

SetUseLookupTableScalarRange(1) in the mapper ..


On Wed, Sep 19, 2012 at 1:41 PM, Darshan Pai <darshanpai at gmail.com> wrote:

> 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.
> My initial setup was to extract the window/level from the
> vtkImagePlaneWidget, creat a vtkWindowLevelLookuptable and set the
> lookuptable to the polydata.
> Sometimes the texture is dark. What my goal is when i change the
> window/level on the vtkImagePlaneWidget , the texture shading should change
> 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.
> I tried calling Modified() on the polydata,lookuptable, the mapper etc.
> but it does not change .
> What might I be missing here. Or is this even possible ?
> Darshan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120920/184a9b2d/attachment.htm>

More information about the vtkusers mailing list