[vtkusers] writing images from window to file in vtk4

anast.jm at pg.com anast.jm at pg.com
Fri Jan 18 16:44:40 EST 2002


Mike try calling

vtkWindowToImageFilter w2if
...
   ----- sometime later in code as needed
...
    w2if Modified

worked for me....john


                                                                
 Internet Mail Message                                          
 Received from host:      public.kitware.com                    
 [208.136.18.25]                                                
                                                                


From: Michael Halle <halazar at media.mit.edu>@public.kitware.com on 01/18/2002
04:16 PM GMT
                                                                                                 
      Michael Halle <halazar at media.mit.edu>           To:   vtkusers at public.kitware.com          
                        @public.kitware.com           Cc:    (bcc: John Anast-JM/PGI)            
                                              Subject:      [vtkusers] writing images from       
                                                   window to file in vtk4                        
                                   Sent by:                                                      
          vtkusers-admin at public.kitware.com                                                      
                        01/18/2002 11:16 AM                                                      
                                                                                                 
                                                                                                 





I feel this must be an embarrassingly simple question, but...

I'm using vtk4, and I want to write an image out to a file.  That means using
vtkWindowToImageFilter and connecting it to an ImageWriter (the PNG one, for
instance).

I write out the file once, fine.  I change the scene, write the file again,
I get the same image.  The file is getting written, just with the old image.

I've played with adding various calls to "Update","UpdateInformation", and
"ReleaseDataFlagOn/Off", (heck, even "Render"), and I have been unable to get
the image to change after the first render.

Am I missing something obvious here?  I can post code if it's non-trivial....

Thanks.

                                         --Mike

_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at: <
http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers






More information about the vtkusers mailing list