spedas/gui/display/draw_object/
spd_ui_draw_object__getclick.pro
Routines
top source spd_ui_draw_object::getClick
result = spd_ui_draw_object::getClick()
spd_ui_draw_object method: GetClick returns a struct that identifies that panel and the part of the panel under the cursor Uses self.cursorLoc to determine current cursor location. Output: Struct of the form: {panelidx:0L,component:0,marker:-1} PanelIdx(long): An index into the list of panels on the currently drawn display, not the panel ID field Components(short): 0=plot,1=xaxis,2=yaxis,3=zaxis,4=variables,5=legend Marker: the index of any marker under the cursor, is -1 if none, index is an index into the list of markers currently stored in the IDL_Container on the copy Returns 0L if click is nothing(ie page) NOTES: Resolution of position is only approximate at this point. In particular, this could be better and distinguishing z-axis from x/yaxis and variable from x axis Things that need to be done to improve approximation, account for text height, take layout issues into account. Resolve variable/z-axis on the same size. $LastChangedBy: egrimes $ $LastChangedDate: 2014-07-31 09:46:47 -0700 (Thu, 31 Jul 2014) $ $LastChangedRevision: 15631 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/display/draw_object/spd_ui_draw_object__getclick.pro $
File attributes
Modification date: | Tue Oct 21 13:53:41 2014 |
Lines: | 95 |