[vtkusers] wxVTKRenderWindowInteractor and wxPython 2.5.2.8

Mathieu Malaterre mathieu.malaterre at kitware.com
Wed Sep 29 10:31:09 EDT 2004


Sander Niemeijer wrote:
>>> On a side note: Has anybody ever tried to get the 
>>> wxVTKRenderWindowInteractor working for Mac? I saw that Mathieu has 
>>> some C++ version of wxVTK on his website, that looks like it supports 
>>> Mac (both Cocoa and Carbon) but only using a top-level window handle. 
>>> Any reasons why sub-windows can't be supported (in our application 
>>> the VTK window is inside a splitter window)? Or has this just not 
>>> been tried yet?
>>
>>
>> On a side note, wxVTK doesn't work on Cocoa yet(*). I am still 
>> struggling with those guys a wxWidget.
> 
> 
> I was also wondering about that, because wxWidgets doesn't support Cocoa 
> at all, only Carbon (and Classic, although I don't know how well 
> supported that still is).

I am sorry where did you read that ? Download 2.5.2 and you'll see obj-c 
for Cocoa all over the place...

> I also don't see a point in trying to create a version of wxVTK that 
> supports Cocoa anyway. People who use wxVTK are using wxWidgets, so they 
> shouldn't care about the kind of OSX GUI framework that is used 
> underneath (that's the whole reason of wxWidgets existence). If Carbon 
> works fine, that should be enough, right?

That's the exact contrary, I was using wxWidget only for cross plateform 
issues. But if you a Mac user and you are send a product that look like 
a Motif app, you would very suprised, even disapointed. GUI has to be 
what user expect it should look like. If on Mac Yes/No is placed the 
contrary than on Window, we should respect that. Help box has to be at 
the same place, file browser should be the Mac one, and not some 
windows'like and so on and so forth.

> However, that still leaves my questions about the top-level vs. 
> lower-level windows. Do you know why for Carbon only the top-level 
> window handle can be retrieved via GetHandle()? Isn't it possible to 
> have a VTK widget in some subpanel of a Carbon wxWidgets window? Does 
> this maybe already work or is it otherwise theoretically possible to 
> implement such a thing? Anybody ever investigated this?

You should ask a Carbon ML for that, or wxWidgets ML ...

Mathieu





More information about the vtkusers mailing list