[vtkusers] VTK CVS + wxPython...

Andrea Gavana andrea.gavana at polymtl.ca
Wed Jul 21 09:05:53 EDT 2004


The funny thing is that wxVTKRenderWindow works great... I can't see a lot of
differences between the behavior of wxVTKrenderWindow and
wxVTKRenderWindowInteractor (as Python code, I don't know anything about the
C/C++ bases of them). I would like to use wxVTKRenderWindowInteractor because
is more flexible and nice (in my opinion). But it still don't work. I've
debugged the example in wxVTKRenderWindowInteractor and I saw that the second
window (the one with title "Visualization Toolkit - Win32OpenGL #1", with a
cone inside but not interactive) appears when wxVTKRenderWindowInteractor calls
widget.Initialize() and widget.Start(), but commenting them out does not help
me a lot... just eliminate the window with the cone and leaving me with a
completely grey window called "wxRenderWindow"...

Thanks you for every suggestion.

Andrea.

Selon "Charl P. Botha" <c.p.botha at ewi.tudelft.nl>:

> Andrea Gavana wrote:
> > If I run the example in wxVTKRenderWindowInteractor, I get the same
> behavior:
> >
> > the first window contains the cone actor, its title is "Visualization
> Toolkit -
> > Win32OpenGL #1", and it is NOT interactive. I can not pan, zoom, rotate
> > anything.
> > The second window has the title "wxRenderWindow" (that is supposed to be
> the
> > title of the main window, the only one that should be shown), it is grey
> and
> > nothing is displayed in it.
> >
> > Has anyone already seen something like this? I am a bit confused now, I
> thought
> > that vtkRenderWindow and vtkRenderWindowInteractor should be used together.
> > Obviously I made a mistake...
>
> If you run wxVTKRenderWindowInteractor.py, you should see only one
> window.  It seems something is not working correctly on your setup.
>
> I'm assuming you're still running wxPython 2.4.2.4.  Have you removed
> Enthought yet?  If not, it's difficult to be sure that you're using the
> libraries that you think you're using.
>
> What happens if you comment out the "widget.Initialize()" and
> "widget.Start()" lines in the wxVTKRenderWindowInteractor.py example?
>
>
> --
> charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
>






More information about the vtkusers mailing list