[vtkusers] Change Render Window

Clinton Stimpson clinton at elemtech.com
Wed Apr 22 11:31:30 EDT 2009


You can call Finalize() before calling SetWindowId() with a new window.

Clint

Kall, Bruce A. wrote:
> How do you correctly change (and update?) the render window's window id?
> I'm running under Xwindow and can successfully create my own X window and
> set the vtk renderer to render into it.  I have 4 of the same sized 
> windows on my screen
> and want to periodically change which of the 4 X windows
> vtk renders into (all are the same size, depth etc).
>
> If I set everything up and set the initial X window by 
> renWin->SetWindowID(window)
> and then render into it, it works just fine.
>
> If I then call renWin->SetWindowId(new_X_window_id) and then render I get
> a "GLXBadDrawable" as an Xwindows error.  I've tried 
> renWin->MakeCurrent() and
> renWin->Start()  after the renWin->SetWindowId() and before the 
> renWin->Render()
> and neither fix the error.
>
> It seems like there should be some type of renWin->Update(), but there 
> isn't.
>
> What step am I missing?
>
> Thanks,
> Bruce
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at 
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list