Thread: Re: [wxVTK] [vtkusers] Anyone using wxVTK wxVTKRenderWindowInteractor wxWidgets VTK class?
Brought to you by:
malat
From: Mathieu M. <mat...@gm...> - 2007-08-21 15:01:23
|
On 8/21/07, H. Johnson <mi...@fa...> wrote: > All versions were the most recent as of Saturday 19 Aug 2007: wxVTK vers > 1.2, VTK vers 5.03 from CVS, ActiveTcl 8.4.15, wxWidgets 2.6.4. Because I am lazy/overbook I think there are still some patch in the wxVTK CVS that are not in any release unfortunately. That's weird, I thought that the timer thingy bug only appear after VTK 5.0. But I did it from the top of my head. > The timer warning is the only problem I have had, but haven't done > anything but the examples. ok > I'm new to VTK so didn't know about the trackball thing, but sure enough > if I hit 't' before doing anything else the problem never seems to > appear. Could you explain for this newbie a little about the > trackball? What mode am I in before I hit the 't'? Simply that VTK mimic typical behavior of such device. If you have ever played games, you have two typical behavior either pointing the joystick down will make you move down, and stop as soon as you release. Or like in a plane you have to point down, and then point up to stop the movement (This is pretty badly explain, but I did my best, sorry. Hopefully you did get the big picture). > Really important: Has anyone actually used the wxVTK bridge code on > anything that went commercial? Not that I know of. Anyone on the ML to comment on that ? I think most people using wxVTK are from academic background. Furthermore Kitware is now officially supporting Qt and KWWidget so for a comapny I think it make more sense to use those toolkits (IMHO). > Any chance that wxVTK will be upgraded > for use with the 2.8 wxWidgets branch? Please send patch ;) As far as I remember the bug was non-trivial, or require patching wx itself. I was hoping that wx 2.8.1 would include a fix (this already happen in the past on the 2.4.x branch)/ wx people are not extremely serious people, when dealing with backward compatiblity. > I'll try the other list, but it didn't look very active. Noone complains, because wxVTK is bug free :-P > Thanks for all your help. -Mathieu Old thread kept for history: > Mathieu Malaterre wrote: > > On 8/20/07, H. Johnson <mi...@fa...> wrote: > > > >> Hi, > >> I'm looking for a solution to build a VTK enabled GUI. I'm pursuing a > >> few different options, one of which is a VTK / wxWidgets combination. > >> > >> I built VTK from CVS last Saturday, and am using wxWidgets 2.6.4. in a > >> VC6.0 C++ only (no Tcl) environment. > >> > >> Sample wxVTK file wxImagePlaneWidget compiles okay, and works for the > >> most part, > >> > > > > Please describe what is not working. Please include your version of wxVTK. > > > > > >> however whenever I click outside the box a vtkOutputWindow pops up and I > >> get a > >> vtkInteractorStyleJoystickCamera (0x0390AF88): Timer start fail > >> message. > >> > > > > Yup, you are using VTK 5.x alright. Take any example using the Tcl RWI > > (on UNIX) from VTK official, you'll be able to reproduce that. > > I think VTK 5.0 should not produce this warning. > > > > > >> So, two questions. Does anyone know what the specific "Timer start > >> fail" message is all about? > >> > > > > When the API was upgraded, a bug was introduced. But I suspect no one > > saw it, as most people use another interactor style. Try the trackball > > one (press 't'). > > > > > >> And more importantly, is the wxVTKRenderWindowInteractor as it is found > >> at http://wxvtk.sourceforge.net/ a ROBUST solution to combining the two? > >> > > > > Absolutely not ! Trust me, and I know the main author of wxVTK (but > > don't tell him that). > > > > Ok seriously, I don't mean to be offended here, but at least describe > > your issues here. It is not perfect (wxVTK does not work with latest > > wxwidget 2.8.x) but I did work hard to get it working in the wx 2.4.x > > branch. 2.6.x should be ok on linux/win32. > > As a side note you could have gotten a tons more answers on the wxVTK > > mailing list, where you'll find the most heavy users of this class: > > > > http://wxvtk.sf.net/ > > [scroll to the bottom of the page] > > > > -Mathieu > > > > > >> Thanks much, > >> > >> Henry > >> _______________________________________________ > >> This is the private VTK discussion list. > >> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > >> Follow this link to subscribe/unsubscribe: > >> http://www.vtk.org/mailman/listinfo/vtkusers > >> > >> > > > > > > > > |
From: Sander N. <nie...@st...> - 2007-08-22 07:54:56
Attachments:
wxvtk-patch
|
At our company we are currently using the wxVTK package. We use wxWidgets/VTK for the development of an ESA-funded open-source application called VISAN (part of the BEAT toolbox: http:// www.stcorp.nl/beat). The current public available version of VISAN uses some hand-crafted wxVTK bridge with Python bindings, but internally we have now moved to wxPython 2.8, VTK 5 and wxVTK (since we moved more stuff to C++ and wanted to include support for Gtk2 and Mac OS X Carbon). We are now able to create working binaries for Windows, Linux (Gtk2), and Mac OS X (Carbon). A new release of VISAN with these changes is due in September. In order to get things to work we had to patch the wxVTK sources. Attached you will find the patch that we used. The primary change that we made in order to get wxVTK to work with wxWidgets 2.8 was to move back to using wxGLCanvas again (i.e. remove the '#if (!wxCHECK_VERSION(2, 8, 0))'). The timer warning is something we haven't seen. But we are using our own interactor styles for most of our visualisations anyway, so that may be the reason. |
From: Mathieu M. <mat...@gm...> - 2007-08-22 13:15:04
|
Hi Sander, Wow ! That is fantastic, thank you so much for the patch ! Can I ask just one quick question, about the OnKeyUp/OnChar thingy. Did you notice that capital letter were being passed ? Patch will be merged tonight. Thanks again, -Mathieu On 8/22/07, Sander Niemeijer <nie...@st...> wrote: > At our company we are currently using the wxVTK package. > > We use wxWidgets/VTK for the development of an ESA-funded open-source > application called VISAN (part of the BEAT toolbox: http:// > www.stcorp.nl/beat). > The current public available version of VISAN uses some hand-crafted > wxVTK bridge with Python bindings, but internally we have now moved > to wxPython 2.8, VTK 5 and wxVTK (since we moved more stuff to C++ > and wanted to include support for Gtk2 and Mac OS X Carbon). We are > now able to create working binaries for Windows, Linux (Gtk2), and > Mac OS X (Carbon). A new release of VISAN with these changes is due > in September. > > In order to get things to work we had to patch the wxVTK sources. > Attached you will find the patch that we used. > The primary change that we made in order to get wxVTK to work with > wxWidgets 2.8 was to move back to using wxGLCanvas again (i.e. remove > the '#if (!wxCHECK_VERSION(2, 8, 0))'). > > The timer warning is something we haven't seen. But we are using our > own interactor styles for most of our visualisations anyway, so that > may be the reason. > > > > Best regards, > Sander Niemeijer > > On 21-aug-2007, at 16:59, Mathieu Malaterre wrote: > > > On 8/21/07, H. Johnson <mi...@fa...> wrote: > >> All versions were the most recent as of Saturday 19 Aug 2007: > >> wxVTK vers > >> 1.2, VTK vers 5.03 from CVS, ActiveTcl 8.4.15, wxWidgets 2.6.4. > > > > Because I am lazy/overbook I think there are still some patch in the > > wxVTK CVS that are not in any release unfortunately. > > That's weird, I thought that the timer thingy bug only appear after > > VTK 5.0. But I did it from the top of my head. > > > >> The timer warning is the only problem I have had, but haven't done > >> anything but the examples. > > > > ok > > > >> I'm new to VTK so didn't know about the trackball thing, but sure > >> enough > >> if I hit 't' before doing anything else the problem never seems to > >> appear. Could you explain for this newbie a little about the > >> trackball? What mode am I in before I hit the 't'? > > > > Simply that VTK mimic typical behavior of such device. If you have > > ever played games, you have two typical behavior either pointing the > > joystick down will make you move down, and stop as soon as you > > release. Or like in a plane you have to point down, and then point up > > to stop the movement > > (This is pretty badly explain, but I did my best, sorry. Hopefully you > > did get the big picture). > > > >> Really important: Has anyone actually used the wxVTK bridge code on > >> anything that went commercial? > > > > Not that I know of. Anyone on the ML to comment on that ? I think most > > people using wxVTK are from academic background. > > Furthermore Kitware is now officially supporting Qt and KWWidget so > > for a comapny I think it make more sense to use those toolkits (IMHO). > > > >> Any chance that wxVTK will be upgraded > >> for use with the 2.8 wxWidgets branch? > > > > Please send patch ;) > > As far as I remember the bug was non-trivial, or require patching wx > > itself. I was hoping that wx 2.8.1 would include a fix (this already > > happen in the past on the 2.4.x branch)/ wx people are not extremely > > serious people, when dealing with backward compatiblity. > > > > > >> I'll try the other list, but it didn't look very active. > > > > Noone complains, because wxVTK is bug free :-P > > > >> Thanks for all your help. > > > > > > -Mathieu > > > > > > Old thread kept for history: > > > >> Mathieu Malaterre wrote: > >>> On 8/20/07, H. Johnson <mi...@fa...> wrote: > >>> > >>>> Hi, > >>>> I'm looking for a solution to build a VTK enabled GUI. I'm > >>>> pursuing a > >>>> few different options, one of which is a VTK / wxWidgets > >>>> combination. > >>>> > >>>> I built VTK from CVS last Saturday, and am using wxWidgets > >>>> 2.6.4. in a > >>>> VC6.0 C++ only (no Tcl) environment. > >>>> > >>>> Sample wxVTK file wxImagePlaneWidget compiles okay, and works > >>>> for the > >>>> most part, > >>>> > >>> > >>> Please describe what is not working. Please include your version > >>> of wxVTK. > >>> > >>> > >>>> however whenever I click outside the box a vtkOutputWindow pops > >>>> up and I > >>>> get a > >>>> vtkInteractorStyleJoystickCamera (0x0390AF88): Timer start fail > >>>> message. > >>>> > >>> > >>> Yup, you are using VTK 5.x alright. Take any example using the > >>> Tcl RWI > >>> (on UNIX) from VTK official, you'll be able to reproduce that. > >>> I think VTK 5.0 should not produce this warning. > >>> > >>> > >>>> So, two questions. Does anyone know what the specific "Timer start > >>>> fail" message is all about? > >>>> > >>> > >>> When the API was upgraded, a bug was introduced. But I suspect no > >>> one > >>> saw it, as most people use another interactor style. Try the > >>> trackball > >>> one (press 't'). > >>> > >>> > >>>> And more importantly, is the wxVTKRenderWindowInteractor as it > >>>> is found > >>>> at http://wxvtk.sourceforge.net/ a ROBUST solution to combining > >>>> the two? > >>>> > >>> > >>> Absolutely not ! Trust me, and I know the main author of wxVTK (but > >>> don't tell him that). > >>> > >>> Ok seriously, I don't mean to be offended here, but at least > >>> describe > >>> your issues here. It is not perfect (wxVTK does not work with latest > >>> wxwidget 2.8.x) but I did work hard to get it working in the wx > >>> 2.4.x > >>> branch. 2.6.x should be ok on linux/win32. > >>> As a side note you could have gotten a tons more answers on the > >>> wxVTK > >>> mailing list, where you'll find the most heavy users of this class: > >>> > >>> http://wxvtk.sf.net/ > >>> [scroll to the bottom of the page] > >>> > >>> -Mathieu > >>> > >>> > >>>> Thanks much, > >>>> > >>>> Henry > >>>> _______________________________________________ > >>>> This is the private VTK discussion list. > >>>> Please keep messages on-topic. Check the FAQ at: http:// > >>>> www.vtk.org/Wiki/VTK_FAQ > >>>> Follow this link to subscribe/unsubscribe: > >>>> http://www.vtk.org/mailman/listinfo/vtkusers > >>>> > >>>> > >>> > >>> > >>> > >> > >> > > > > ---------------------------------------------------------------------- > > --- > > This SF.net email is sponsored by: Splunk Inc. > > Still grepping through log files to find problems? Stop. > > Now Search log events and configuration files using AJAX and a > > browser. > > Download your FREE copy of Splunk now >> http://get.splunk.com/ > > _______________________________________________ > > Wxvtk-users mailing list > > Wxv...@li... > > https://lists.sourceforge.net/lists/listinfo/wxvtk-users > > > > -- Mathieu |
From: Sander N. <nie...@st...> - 2007-08-22 13:33:54
|
Hi Mathieu, On 22-aug-2007, at 15:15, Mathieu Malaterre wrote: > Can I ask just one quick question, about the OnKeyUp/OnChar thingy. > Did you notice that capital letter were being passed ? In our implementation we don't have capitalization issues (for the OnChar). However, mind that we are currently only testing this against wxPython 2.8 and VTK 5. So capitalization issues may be present with older wxWidgets/VTK versions. > Patch will be merged tonight. Be careful here. Since we haven't tested against older wxWidgets/VTK versions you may break backward compatibility by including this patch. Best regards, Sander |
From: Mathieu M. <mat...@gm...> - 2008-04-13 21:56:14
|
On Wed, Aug 22, 2007 at 3:33 PM, Sander Niemeijer <nie...@st...> wrote: > Hi Mathieu, > > > On 22-aug-2007, at 15:15, Mathieu Malaterre wrote: > > > Can I ask just one quick question, about the OnKeyUp/OnChar thingy. > > Did you notice that capital letter were being passed ? > > In our implementation we don't have capitalization issues (for the > OnChar). > However, mind that we are currently only testing this against > wxPython 2.8 and VTK 5. > So capitalization issues may be present with older wxWidgets/VTK > versions. > > > > Patch will be merged tonight. > > Be careful here. Since we haven't tested against older wxWidgets/VTK > versions you may break backward compatibility by including this patch. Oh waw ! I did said I would your patch the very same night... Did you know that night last a couple of months in France ;-P Sorry about that... -- Mathieu |