[vtkusers] View an image in a window

Francois Bertel francois.bertel at kitware.com
Mon Nov 17 13:40:12 EST 2008


Take a look at the following tcl test, it uses vtkRenderSource:

VTK/Rendering/Testing/Tcl/rendererSource.tcl

Here is the result of this test:
VTKData/Baseline/Rendering/rendererSource.png

Doc:
http://www.vtk.org/doc/nightly/html/classvtkRendererSource.html

On Mon, Nov 17, 2008 at 1:29 PM, Nour Mestiri <nourmestiri at yahoo.fr> wrote:
> Hi all vtk users,
> I convert a polydata into an image using 'vtkWindowToImageFilter' class:
> vtkWindowToImageFilter *w2if = vtkWindowToImageFilter::New();
> w2if->SetInput(myRenderWindow);
>
> Now, i want to display this image on a second window.
> Can someone tell me how to do that?
> Thank you
>
> _______________________________________________
> 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
>
>



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list