[vtk-developers] pipeline question

Simon Warfield warfield at bwh.harvard.edu
Tue Mar 29 10:22:26 EST 2005


Ken Martin wrote:

>>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
>  
>
Thanks, I was using a vtkRenderer instead of a vtkRenderWindow

>Ken
>
>  
>


-- 
Simon 




More information about the vtk-developers mailing list