[vtkusers] Writing Pictures
Jorrit Schaap
jorrit at lkeb.azl.nl
Wed Jan 3 13:44:46 EST 2001
Try this:
yourRenderWindow->SetOffScreenRendering(1);
then make the picture with the vtkWindowToImageFilter etc...
and then call:
yourRenderWindow->SetOffScreenRendering(0);
so you have your renderwindow back on your screen.
This should be platform independent.
--
Jorrit Schaap
Division of Image Processing
Leiden University Medical Center
+31 71 5266206
> -----Original Message-----
> From: vtkusers-admin at public.kitware.com
> [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Prabhu
> Ramachandran
> Sent: woensdag 3 januari 2001 18:58
> To: VTK users list
> Subject: RE: [vtkusers] Writing Pictures
>
>
> hi,
>
> >>>>> "Jorrit" == Jorrit Schaap <jorrit at lkeb.azl.nl> writes:
>
> Jorrit> There's a better solution. make a
> Jorrit> vtkWin32OffscreenRenderWindow (in the contrib directory).
> Jorrit> Get the vtkRenderer from your current vtkRenderWindow and
> Jorrit> attach it to the new offscreenrenderwindow. attach the
> Jorrit> new offscreenrenderwindow to the
> Jorrit> vtkWindowToImageFilter. The rest remains the same.
>
> Yeah, but it wont work on all platforms will it? Is there a version
> that works on *nix? If so will it be integrated into vtk sometime??
>
> prabhu
>
> _______________________________________________
> 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