[vtkusers] Bug in vtkCocoaRenderWindowInteractor?

Drew McCormack cormack at chem.vu.nl
Tue Aug 27 11:07:24 EDT 2002


I have been working on setting up VTK to work more seamlessly with 
Project Builder and Interface Builder, so that Cocoa programmers can 
easily integrate it into their apps. So far I have been able to compile 
VTK in Jaguar, run the mace example from PB, and now create a 
vtkCocoaGLView subclass which can be used in Interface Builder like any 
other view class (ie. it can be contained inside a standard NSWindow, 
rather than requiring that the enclosing window be a vtkCocoaWindow.) I 
should also be able to build a VTK framework.

I do have one problem though: when I interact with the Mace example by 
clicking and dragging, the Mace rotates, but the mouse events seem to 
be interpreted relative to an origin near the left-bottom corner of the 
screen, rather than relative to the center of the view. If I click in 
the view, and then drag the cursor to the bottom-left of the screen, 
the mace starts to rotate slowly, and even stops.

I thought I would try the standard mace example from the command line, 
to see if this was a problem I introduced, but the same problem exists 
there. If you setup the Mace example to allow for interaction, run it, 
and then move the Mace window before click-dragging in the window, you 
can see that mouse events are interpreted relative to an origin near 
the left-bottom of the window, not the center of the window as they 
should.

Does anyone know of this problem, or what could be causing it?

Drew

========================================
  Dr. Drew McCormack (Kmr. R153)
  Afd. Theoretische Chemie
  Faculteit Exacte Wetenschappen
  Vrije Universiteit Amsterdam
  De Boelelaan 1083
  1081 HV Amsterdam
  The Netherlands

  Email		cormack at chem.vu.nl
  Telephone  	+31 20 44 47623
  Mobile		+31 6 483 21307
  Fax   		+31 20 44 47629




More information about the vtkusers mailing list