[vtkusers] wxwindows-VTK in C++

Prabhu Ramachandran prabhu at aero.iitm.ernet.in
Wed Dec 4 08:36:16 EST 2002


>>>>> "AB" == Alberto Bert <abert at mauriziano.it> writes:

    AB> (debian woody, g++-2.95) something strange happended. Together
    AB> with the wxWindows' window, pop up a second window, the VTK
    AB> one. In XP, instead, VTK sends correctly its rendering to the
    AB> wxWindows' window. Furthermore, on linux thw VTK window has
    AB> the right size (also after resizing) but the interactor
    AB> doesn't work.

This usually means that you are calling Render() on the VTK widget
*before* the parent widget is created.  So what you need to do is to
ensure that the parent window (your wxFrame or whatever) has been
realized before calling Render.  Either add hooks to your Render
method or ensure that Render is called only after the parent widget is
realized.

cheers,
prabhu



More information about the vtkusers mailing list