[vtkusers] Performance and saving images issue

Christian Chilan cmchilan at yahoo.com
Tue Aug 13 15:57:17 EDT 2002


Hi there,

I'm creating a viz application using VTK with Tcl/Tk.
I've added interactivity such that the user can
manipulate the view of the actors in the window.
Another feature is saving images into a file (.bmp,
.jpg,...). For the saving procedure, I'm using
vtkWindowToImageFilter and the standard writers, say
vtkBMPWriter.

The problem here is that after saving an image, the
interactivity performance drops. The view manipulation
turns very slow. I made sure of deleting the filter
and the writer after the file is saved but it doesn't
solve the problem. It is my guess that in the
pipeline, the window is still sending data somewhere.

I've also noticed that this problem only affects the
performance of the saved window. If there are more
windows present, the others will behave normally.
Hence, a possible workaround would be creating a
temporal copy of the window just before saving.
DeepCopy() should do but it's not implemented in all
classes.

Any help would be appreciated.

Christian Chilan







__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com



More information about the vtkusers mailing list