[vtkusers] vtkRenderer in wxPython

John Hunter jdhunter at ace.bsd.uchicago.edu
Mon Nov 19 20:46:13 EST 2001


>>>>> "Prabhu" == Prabhu Ramachandran <prabhu at aero.iitm.ernet.in> writes:

    Prabhu> As far as I can tell, by doing this you are asking for
    Prabhu> trouble.  vtkRenderWindowInteractor() will trap events and
    Prabhu> wxPython also will do the same so this is a good recipe
    Prabhu> for disaster.  To avoid this you will have to program your
    Prabhu> own event handling code *in wxPython* using a
    Prabhu> vtkRenderWindow.  Basically the same way that I
    Prabhu> wrote/copied ;) the code to deal with the standard
    Prabhu> interaction in vtk.py you have to write your own
    Prabhu> interaction code if you want to do it differently.  It
    Prabhu> should not be very hard to do since the code was written
    Prabhu> keeping in mind that someone might want different
    Prabhu> behaviour.

Ok, thanks.  This is the approach I have taken.  I only had to
override a few of the vtkRenderWindow methods while leaving most of
them intact to get all the functionality I need.  When I get the
wxSlicerViewer finished, I'll post it.

Thanks,
John Hunter




More information about the vtkusers mailing list