[vtkusers] Mac debugging
Yves Starreveld
ystarrev at uwo.ca
Tue Aug 10 13:53:46 EDT 2004
By way of summary:
vtkCocoaGLView.mm
- takes care of allocating an NSOpenGLView which simply provides a
rendering context
vtkCocoaRenderWindow.mm
- interacts with the OSX Window manager to display a window and create
its vtkCocoaGLView. These were separated to allow applications to do
their own window management and just use vtkCocoaGLViews themselves
(see Osirix...)
vtkCocoaRenderWindowInteractor.mm
-interacts with the event stream, trapping appropriate events and
turning them into vtk events.
None of these classes do any drawing; once the context is set
appropriately, the vtkOpenGLRenderer does it all.
Yves
On 10-Aug-04, at 1:44 PM, Eugene Kim wrote:
> Hi Chris,
>
> Right, I have seen the vtkCocoa---- files, and I know they are the
> ones
> which interact directly with the C++ code. What I can't determine is
> the
> other side of the problem... what is interacting with these files? Are
> these files the ones which are directly communicating with Cocoa to
> draw
> to the screen?
>
> Thanks,
> Eugene
>
> On Tue, 10 Aug 2004, Chris Scharver wrote:
>
>> On Aug 9, 2004, at 3:59 PM, Eugene Kim wrote:
>>
>>> Does anyone know which classes call the objective-C files?
>>
>> VTK is actually using Objective-C++. vtkCocoaGLView is a Cocoa class
>> including some C++ calls in its implementation. On the other hand, the
>> classes vtkCocoaRenderWindowInteractor, vtkCocoaRenderWindow, and
>> vtkCocoaWindow are C++ classes which make some Objective-C calls (such
>> as to vtkCocoaGLView) in their implementations. The C++ classes store
>> void pointers which are then cast into the correct Objective-C classes
>> as needed.
>>
>> Hope this helps,
>> Chris
>> --
>> Chris Scharver
>> Electronic Visualization Laboratory
>> The University of Illinois at Chicago
>> Ph: 312-996-3002 FAX: 312-413-7585
>> <http://www.evl.uic.edu/scharver/>
>>
>>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list