[vtkusers] Mac OS X related questions
Raphael Sebbe
sebbe at multitel.be
Tue Jul 16 10:01:01 EDT 2002
Hi,
you can compile VTK using the Cocoa backend instead of Carbon. Just run
cmake -i, say OFF to Carbon and ON to Cocoa. You'll have to edit some
Makefiles manually to add -framework Cocoa in the link step.
It definitely works from a Cocoa application and from what I've seen so
far, it should even be possible (perhaps tricky) to add a VTK view
inside a custom window. You just have to use Objective C++ files (.mm,
instead of regular .m ObjC files) and make the appropriate calls, as:
vtkRenderWindow *renWin = vtkRenderWindow::New();
vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);
...
Raphael Sebbe
On Tuesday, July 16, 2002, at 12:42 PM, vtkusers-
request at public.kitware.com wrote:
> Date: Tue, 16 Jul 2002 11:47:59 +0200
> From: Drew McCormack <cormack at chem.vu.nl>
> To: vtkusers at public.kitware.com
> Subject: [vtkusers] Mac OS X related questions
>
> I've just installed VTK on Mac OS X, and am looking forward to learning
> it. I had a few questions I was hoping I could get answered:
>
> 1) VTK works under Carbon or X-windows, but does anyone know if anyone
> is working on integrating it with Cocoa? Is it possible to take the VTK
> output and display it in a cocoa window?
>
> 2) Is there support in VTK for exporting movies, for example in one or
> other MPEG format? Is there any support for Quicktime? If not, how do
> people make movies with VTK? Do they just grab the screen while the VTK
> animation is running?
>
> I guess some of these questions would be answered in a text book, which
> is next on my list of things to buy, but the OS X related questions
> probably aren't. I'd be much obliged to anyone that can fill me in.
>
> Thanks,
> Drew
More information about the vtkusers
mailing list