[vtkusers] Mac OS X x86_64 with Qt-4.5.x,vtk-5.3.x

Sean McBride sean at rogue-research.com
Fri Jan 2 14:46:29 EST 2009


On 11/25/08 9:37 AM, Clinton Stimpson said:

>>>> Do I understand correctly that this API takes an ASCII string (of a
>>>> base-10 number) that represents a pointer address?!?  That's strange,
>>>> no?  This is likely to wreak havoc with Obj-C garbage collection...
>>>>       
>>> Yes, its a string of a base 10 number which one can extract then 
>>> reinterpret cast back to a native window system handle.
>>> The vtkRenderWindow::SetWindowInfo() is called by the GTK, Qt, wx Python 
>>> codes that interface with VTK.  Of the 3, it looks like Qt is the only 
>>> one that optionally uses Cocoa now.
>>
>> Do you happen to know why a string is used?  Seems awfully weird, but I
>> assume there is a reason.
>I can only guess it is there to support the scripting languages.
>Has VTK/Cocoa been used with scripting languages yet?

I have implemented vtkCocoaRenderWindow::SetWindowInfo() as described in
this thread and committed to CVS.  I have not tested this (other than
running the unit tests of course) since I don't use Qt.

See:
<http://public.kitware.com/cgi-bin/viewcvs.cgi/Rendering/
vtkCocoaRenderWindow.mm?r1=1.62&r2=1.63>

Elvis, care to try?

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada





More information about the vtkusers mailing list