[vtkusers] vtkRenderWindow contents to ppm

Dean Inglis dean.inglis at on.aibn.com
Wed Mar 6 18:02:46 EST 2002


Hi,

RenderWindows used to be able to do this:

  iren->SetUserMethod(&fn,(void*)renWin);

void fn(void *ren)
{
 ((vtkWin32OpenGLRenderWindow *)ren)->SetFileName("scrdump.ppm");
 ((vtkWin32OpenGLRenderWindow *)ren)->SaveImageAsPPM();
}

which now is in vtkImageWindow.  How can I do this with a 3D image from a
vtkRenderWindow?

Dean




More information about the vtkusers mailing list