[vtkusers] Forcing rendering after updating vtkImageData

Jahn Otto Næsgaard Andersen jotto at jotto.no
Tue Sep 11 12:35:46 EDT 2012


I am showing a plane with a texture from vtkImageData. I update the data in
the vtkImageData by copying a buffer into the pointer that I get from
imageData.GetScalarPointer() (in C#).

After modifying the data, I'm calling imageData.Modified(). However, I
still need to wiggle the scene in order to redraw it. I can always force
the rendering by calling renderWindow.Render(), but that seems a bit ugly.
What is the recommended way to trigger a re-rendering of the window after
modifying the image data?


-- 
Jahn Otto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120911/bf35cfea/attachment.htm>


More information about the vtkusers mailing list