spedas/gui/display/draw_object/
spd_ui_draw_object__updatepanels.pro
spd_ui_draw_object method: updatePanels draws the panels for this window. This routine is the workhorse of the draw object, Inputs: Layout Dims(2-elements long): The number of rows and columns in the layout(from the spd_ui_window) Margins(6-elements double): The size of the margins for the panel in points. Elements are as follows [left,right,top,bottom,horizontal_internal,vertical_internal] PanelObjs(array of objects): Array of references to the spd_ui_panel objects being drawn LoadedData(object): Reference to the spd_ui_loaded_data object in which the data to be plotted is stored Backgroundcolor(3-element Byte array): The color of the background, needed to emulate some transparency effects. Locked(long index): The locked value from the window object. -1 is unlocked, otherwise it is the index of the panel to which others are locked. Index in terms of the list of panelObjs Window(object): The active window from which the drawn panels originate. Needed to query layout information. Outputs: returns 1 on success, 0 on failure errmsg: a struct describing an error that has occurred, to be passed up to calling routine. The existance of errmsg does not guarantee updatePanels returns 0 and vice versa. Currently updatepanels itself does not set errmsg, it is simply passed on through here to other routines (presently only getRange and makeView). See spd_ui_draw_object_update for more details. Mutates: self.panelViews,self.staticViews,self.dynamicViews,self.panelInfo NOTE: The order in which various elements of the panel are added to the display is IMPORTANT If you change the ordering be sure to check that this change hasn't oscured some important feature. $LastChangedBy: aaflores $ $LastChangedDate: 2014-06-11 15:56:35 -0700 (Wed, 11 Jun 2014) $ $LastChangedRevision: 15353 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/spedas/gui/display/draw_object/spd_ui_draw_object__updatepanels.pro $
Routines
top source spd_ui_draw_object::updatePanels
result = spd_ui_draw_object::updatePanels(layoutDims, margins, panelObjs, loadedData, backgroundcolor, locked, window, errmsg=errmsg)
Parameters
- layoutDims
- margins
- panelObjs
- loadedData
- backgroundcolor
- locked
- window
Keywords
- errmsg
File attributes
Modification date: | Tue Oct 21 13:53:41 2014 |
Lines: | 548 |