[vtkusers] [VTK + wxPython + Linux] bug : Reparent with widgetcontaining wxVTKRenderWindow
Prabhu Ramachandran
prabhu at aero.iitm.ernet.in
Fri Feb 7 13:40:02 EST 2003
>>>>> "BR" == Benoit Regrain <benoit.regrain at creatis.insa-lyon.fr> writes:
BR> I have made some tests concerning reparenting. With the method
BR> SetNextWindowId placed in vtkXOpenGLRenderWindow we can change
BR> properly the drawing window id. To use it in python, it is
BR> necessary to have method SetNextWindowInfo, like we have
BR> SetWindowInfo.
It is possible to add a SetNextWindowInfo method to the
vtkXOpenGLRenderWindow class but the question is will this be a cross
platform solution or an X-only solution? How would you achieve
re-parenting under Win32 or Mac OS X? Or is that already possible to
do? In any case I think since vtkXOpenGLRenderWindow already provides
a SetNextWindowId method, adding a SetNextWindowInfo should be fine.
The other issue is that VTK is due for a 4.2 release shortly and I am
not sure making this addition at this time is a good idea (although I
don't see it introducing any new problems). So maybe after the 4.2
release this can be added?
BR> I would know why you don't have write the method
BR> SetNextWindowId in class vtkRenderWindow, and if you could
BR> make that and add the method SetNextWindowInfo. What must I
BR> make or send to you to have these modifications in the next
BR> VTK nightly ???
Nothing really. In this case I think the change should be fairly easy
to make. You just need to get the attention of one of the
developers. :)
BR> I must work a little to python class wxVTKRenderWindow to have
BR> properly code.
The wxVTKRenderWindow class and the Interactor class are not perfect.
Fixes are most welcome. :)
cheers,
prabhu
More information about the vtkusers
mailing list