From: Alan W. I. <ir...@be...> - 2002-03-02 20:23:51
|
Thanks for answering my questions/comments. I suggest you could improve the design by printing a warning message when outside a viewport but continue to stay in locate mode for that situation so that subsequent clicks inside viewports still work (without having to reinvoke L). Otherwise, for an example like x01c with lots of area outside viewports, the first impression is that locate mode is severely broken. (At least that was my impression....;-)) Of course to finish locate mode you don't have to click on an area with no viewport. Instead, simply type <ESC> as now. By the way, before you (and recently somebody else also) mentioned the L command and now <ESC> I had never heard of them and had no idea you could use locate mode for any of the examples other than x01c. Part of the reason it is taking me so long to get up to speed on this interactive stuff is I cannot find any documentation. Are there any other "locate" commands besides L and <ESC>? Do all interactive drivers have this capability? Is there some documentation that I have missed? If you point me to some documentation or provide me with some, I will put it in the docbook documentation form so everybody can easily find it. Probably the best place would be http://plplot.sourceforge.net/resources/docbook-manual/plplotdoc-html-0.4.3/interactive-devices.html. Alan email: ir...@be... phone: 250-727-2902 FAX: 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 __________________________ On Sat, 2 Mar 2002, Joao Cardoso wrote: > On Friday 01 March 2002 9:52 pm, Alan W. Irwin wrote: > > Joao's recent xwin fix only solved a tiny part of the problem. > > > > Using > > > > ./x01c -locate -dev xwin > > > > you can click on any viewport and get back world coordinates and relative > > device coordinates, but as soon as you make the mistake of clicking outside > > a viewport, the mouse is hosed, i.e. mouseclicks are ignored from then on. > > This is the intended behavior. Also, if you invoke the cursor via the > driver, typing 'L' (no need for -locate in the cmdline), you finish it either > typing <ESC> or clicking out a vieport. > > > Since the xwin fix, the cross-hairs turn off when the mouse is hosed, but > > that is the only change in the bad behavior. > > > > With -dev tk you get identical bad results when clicking outside a > > viewport. However, if you stick inside viewports there is an extra twist; > > you get two (!) sets of coordinates for every mouse click. > > I can't reproduce this one. > > > > > With -dev ntk you get identical bad results when clicking outside a > > viewport. However, if you stick inside viewports, you get the normal one > > line of results per click, but no cross-hairs are displayed at all! > > ntk does not yet uses crosshairs; instead it uses a cross cursor. It does not > also implement the driver locate mode vie key 'L', nor resizes, nor... > > > > > So there is a whole lot of little things which are not right as well as the > > bigger problem of the mouse stopping working entirely if you ever click > > outside a viewport by mistake. > > We can change this, but it works as designed. I agree that at first it seems > strange, or even bad design, as one can leave locate mode inadvertly, but > there must exist a way to finish locate mode. Suggestions? > > Joao > > > > > Once the interactive drivers, the C library and C front-end start dealing > > with interactive mouse clicks properly, I will want to get this working for > > the python (or pyqt) front end as well. I have a research project on the > > horizon involving the analysis of many spectra that requires good > > fundamental mouse interactivity for PLplot. > > > > Alan > > > > email: ir...@be... > > phone: 250-727-2902 FAX: 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 > > _______________________________________________ > Plplot-devel mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-devel > |