From: Joao C. <jc...@fe...> - 2002-02-27 05:23:53
|
On Wednesday 27 February 2002 04:07, Alan W. Irwin wrote: | I would appreciate further discussion of one aspect of the | plTranslateCursor code. | | It goes through a reversed list of windows (I assume these are | sub-windows?) and for the first one where the cursor is inside the | sub-window it does the transformation and returns. | | If I have this interpretation right, then it looks like the pyqt | group's plgetpos using data in the PLStream struct won't really | work since on a page with subwindowing, the world coordinates can | vary wildly form sub-window to sub-window (e.g., example 1), and | their code doesn't take account of this. So my guess is they are | going to be forced (by example 1) to go to the plTranslateCursor | type of transformation. One problem with plGetCursor() is that it doesn't give information on=20 which sub-page the mouse event occurred. I always found this a=20 serious limitation. Perhaps using the "i" variable as the return value from=20 plGetCursor()? of course existing code that relies on a "1" to be=20 returned would fail, but I guess that most code is just checking for=20 a zero/non-zero return value. An advantage of this approach is that=20 it wouldn't break API compatibility. Joao | | Do you agree? | | Alan | | email: ir...@be... | phone: 250-727-2902=09FAX: 250-721-7715 | snail-mail: | Dr. Alan W. Irwin | Department of Physics and Astronomy, | University of Victoria, P.O. Box 3055, | Victoria, British Columbia, Canada, V8W 3P6 | __________________________ | | Linux-powered astrophysics | __________________________ | | | _______________________________________________ | Plplot-devel mailing list | Plp...@li... | https://lists.sourceforge.net/lists/listinfo/plplot-devel |