Re: [wxVTK] VTK et wxWindows
Brought to you by:
malat
From: Mathieu M. <mat...@ki...> - 2006-12-12 18:09:50
|
Salut Sébastien, [Switching to english, sorry ;)] Indeed compiling wxVTK on GNU/Linux can be a pain (to be polite). I did wrote a quick note on the main site about that: http://wxvtk.sourceforge.net/ * wxVTK requires CMake 2.4 now. (CMake 2.4.3 suffers from bug #3582 I guess this is not very explicit. But the issue is the following: The wxWidgets continue to refuse to expose an API I have been requesting for a while now (more that 3 yrs), whereas the wxPython did expose that same API (speak about consistency!). So the only way I found was to figure out what GTK version the wxWidgets was built on. And the heuristic to find it is very fragile (as you probably realized). I have tried multiple option in the past, but this is too much work to maintain (and I am not very active on this project anyway). Anyway the bottom line, is that you need somehow to figure out what is the GTK used by your wxWidgets lib. I suspect you have an old library that is still using gtk 1.2.x (this case is very poorly tested since my main plateform uses gtk 2.x). By the way sending the full log of the error is generally much self explanatory, please include if you want me to comment. So to answer your question: 1. Yes definitely wx + VTK is know to work pretty well on Linux and Win32. The people on Mac are complaining but Carbon support is getting there. 2. I haven't played much with the new widgets architecture in VTK 5.1, but the old widgets are working very nicely. I guess a lot of people on this ML could also share there comment on the respsonsiveness of wx + VTK when doing interaction. In the old days, wxGTK had an issue that would cause a rerender (very bad for volume rendering) when moving the mouse, I believe this is fixed in gtk2.x. Please CC the ML, it makes my life much easier :) Thanks, Mathieu Sebastien Valette wrote: > Bonjour Mathieu, > > je m'intéresse à la création d'interfaces avec wxWidgets pour des > applications utilisant VTK. Tout se passe bien jusqu'au moment où on > essaie de lancer une interaction sur une vtkRenderWindow, qui coupe > toute interaction possible avec les widgets de wx. > > Nous avons remarqué ton projet wxVTK sur sourceforge, mais je ne suis > pas encore arrivé à le compiler correctement sous linux (problèmes de > dépendances, peut-être). > > Nous avons aussi remarqué la création de widgets pour vtk dans la > version nightly. > > Mes questions sont : > Est-il possible d'implémenter correctement un interacteur compatible VTK > et wx (comme wxVTK) ? > Est-ce que les widgets introduits dans VTK sont "compatibles" avec wx? > Bref, apparement, tu as beaucoup bossé sur le sujet, et j'aimerai savoir > quel est la meilleure démarche pour créer une interface sous wx... > > cordialement, > > Sébastien Valette > |