Hi Roelof,<br><br>The VTK pipeline executive is supposed to re-execute vtkImageMapToRGBA in this situation.&nbsp; The reason that it isn&#39;t re-executing is most likely that when you change the data (i.e. at each time step), the VTK executive doesn&#39;t notice that you made the change.
<br><br>If you call the Modified() method on vtkImageMapToRGBA every time step, that will ensure that it will re-execute the next time you render the image.<br><br>&nbsp;- David<br><br><br><div><span class="gmail_quote">On 2/8/07, 
<b class="gmail_sendername">rkemp</b> &lt;<a href="mailto:rkemp@few.vu.nl">rkemp@few.vu.nl</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I&#39;ve a little program which visualizes a calculation each time step. I use the ImageViewer object to<br>display it.<br><br>I) If I render the ImageData directly the visualization behaves just as expected (grayscale)
<br><br>II) However if I render it using with a vtkImageMapToRGBA filter in order to get a colored<br>visualization, only the first rendering appears. New renderings don&#39;t appear, because the first one<br>is still there. If I only render the last rendering, it is exactly the colored visualization I expect.
<br><br>My question: Do you have to use some clear operation or something in situation II? Which function<br>should do that??<br><br>Thank you very much for your comments!!<br><br>Roelof<br>_______________________________________________
<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>