[vtkusers] Change Render Window

Kall, Bruce A. kall at mayo.edu
Wed Apr 22 11:50:24 EDT 2009


Clint,

Thanks.  This works great.  It's not intuitive why you would use Finalize()
before changing the widow based on the description:

"Finalize the rendering process"

Sure seems like you would call this 'after' you changed the windowid, but
it does what it does and my problem is solved!

Thanks,
Bruce


Clinton Stimpson wrote:
>
> 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