[vtk-developers] pipeline question

Ken Martin ken.martin at kitware.com
Tue Mar 29 09:00:31 EST 2005


> I have a VTK pipeline, rather like the Medical3.cxx example, which
> reads some data from disk,
> connects a vtkWindowLevelLookupTable to a vtkMapImageToColors,
> uses a vtkImageActor to texture map a plane of the data into a scene.
> 
> I programmatically modify the window and level of the lookup table, but
> the texture mapped plane does not update.  I have to click or rotate the
> plane to get the change to become visible.  I tried setting Modified()
> on the lookup table, the ImageActor and the vtkDataObject before calling
> ren->Render(), all to no avail.
> 
> Any idea how to get the pipeline to render the data when the
> window/level lookup table is modified ?


It should just happen, but here are two ideas

1) send Modified to vtkMapImageToColors

2) make sure ren is a vtkRenderWindow not a vtkRenderer

Ken




More information about the vtk-developers mailing list