[vtkusers] Clear / update function for vtkImageMapToRGBA
David Gobbi
dgobbi at atamai.com
Thu Feb 8 09:40:02 EST 2007
Hi Roelof,
The VTK pipeline executive is supposed to re-execute vtkImageMapToRGBA in
this situation. The reason that it isn't re-executing is most likely that
when you change the data (i.e. at each time step), the VTK executive doesn't
notice that you made the change.
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.
- David
On 2/8/07, rkemp <rkemp at few.vu.nl> wrote:
>
> Hi,
>
> I've a little program which visualizes a calculation each time step. I use
> the ImageViewer object to
> display it.
>
> I) If I render the ImageData directly the visualization behaves just as
> expected (grayscale)
>
> II) However if I render it using with a vtkImageMapToRGBA filter in order
> to get a colored
> visualization, only the first rendering appears. New renderings don't
> appear, because the first one
> is still there. If I only render the last rendering, it is exactly the
> colored visualization I expect.
>
> My question: Do you have to use some clear operation or something in
> situation II? Which function
> should do that??
>
> Thank you very much for your comments!!
>
> Roelof
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070208/1e195ac0/attachment.htm>
More information about the vtkusers
mailing list