|
GRASS Programmer's Manual
6.4.2(2012)
|
Main frame for hisgram display window. More...
Public Member Functions | |
| def | __init__ |
| def | InitDisplay |
| Initialize histogram display, set dimensions and region. | |
| def | OnOptions |
| Change histogram settings. | |
| def | GetOptData |
| Callback method for histogram command generated by dialog created in menuform.py. | |
| def | SetHistLayer |
| Set histogram layer. | |
| def | SetHistFont |
| Set font for histogram. | |
| def | OnErase |
| Erase the histogram display. | |
| def | OnRender |
| Re-render histogram. | |
| def | GetWindow |
| Get buffered window. | |
| def | SaveToFile |
| Save to file. | |
| def | PrintMenu |
| Print options and output menu. | |
| def | OnQuit |
| def | OnCloseWindow |
| Window closed Also remove associated rendered images. | |
Data Fields | |
| Map | |
| layer | |
| params | |
| propwin | |
| font | |
| encoding | |
| toolbar | |
| mapname | |
| statusbar | |
| HistWindow | |
| printopt | |
| height | |
Main frame for hisgram display window.
Uses d.histogram rendered onto canvas
Definition at line 261 of file histogram.py.
| def gui_modules.histogram.HistFrame.__init__ | ( | self, | |
parent = None, |
|||
id = wx.ID_ANY, |
|||
title = _("GRASS GIS Histogram of raster map"), |
|||
style = wx.DEFAULT_FRAME_STYLE, |
|||
| kwargs | |||
| ) |
Definition at line 267 of file histogram.py.
| def gui_modules.histogram.HistFrame.GetOptData | ( | self, | |
| dcmd, | |||
| layer, | |||
| params, | |||
| propwin | |||
| ) |
Callback method for histogram command generated by dialog created in menuform.py.
Definition at line 323 of file histogram.py.
References gui_modules.histogram.HistFrame.params, gui_modules.gmodeler.ModelParamDialog.params, gui_modules.histogram.HistFrame.propwin, and gui_modules.histogram.HistFrame.SetHistLayer().
Referenced by gui_modules.histogram.HistFrame.OnOptions(), and gui_modules.layertree.LayerTree.PropertiesDialog().
| def gui_modules.histogram.HistFrame.GetWindow | ( | self | ) |
Get buffered window.
Definition at line 383 of file histogram.py.
References gui_modules.histogram.HistFrame.HistWindow.
Referenced by gui_modules.psmap_dialogs.TCValidator.Validate(), and gui_modules.menuform.FloatValidator.Validate().
| def gui_modules.histogram.HistFrame.InitDisplay | ( | self | ) |
Initialize histogram display, set dimensions and region.
Definition at line 308 of file histogram.py.
| def gui_modules.histogram.HistFrame.OnCloseWindow | ( | self, | |
| event | |||
| ) |
Window closed Also remove associated rendered images.
Definition at line 452 of file histogram.py.
| def gui_modules.histogram.HistFrame.OnErase | ( | self, | |
| event | |||
| ) |
Erase the histogram display.
Definition at line 373 of file histogram.py.
| def gui_modules.histogram.HistFrame.OnOptions | ( | self, | |
| event | |||
| ) |
Change histogram settings.
Definition at line 314 of file histogram.py.
References gui_modules.histogram.HistFrame.GetOptData(), gui_modules.gcpmanager.GroupPage.GetOptData(), gui_modules.gdialogs.DecorationDialog.GetOptData(), gui_modules.gmodeler.ModelFrame.GetOptData(), gui_modules.histogram.BufferedWindow.mapname, gui_modules.histogram.HistFrame.mapname, gui_modules.histogram.HistFrame.params, and gui_modules.gmodeler.ModelParamDialog.params.
| def gui_modules.histogram.HistFrame.OnQuit | ( | self, | |
| event | |||
| ) |
Definition at line 449 of file histogram.py.
| def gui_modules.histogram.HistFrame.OnRender | ( | self, | |
| event | |||
| ) |
Re-render histogram.
Definition at line 378 of file histogram.py.
Referenced by gui_modules.mapdisp.MapFrame.OnToggleRender(), gui_modules.mapdisp.MapFrame.OnToggleResolution(), and gui_modules.mapdisp.MapFrame.OnToggleShowRegion().
| def gui_modules.histogram.HistFrame.PrintMenu | ( | self, | |
| event | |||
| ) |
Print options and output menu.
Definition at line 426 of file histogram.py.
| def gui_modules.histogram.HistFrame.SaveToFile | ( | self, | |
| event | |||
| ) |
Save to file.
Definition at line 387 of file histogram.py.
| def gui_modules.histogram.HistFrame.SetHistFont | ( | self, | |
| event | |||
| ) |
Set font for histogram.
If not set, font will be default display font.
Definition at line 352 of file histogram.py.
References gui_modules.histogram.HistFrame.encoding, and gui_modules.histogram.HistFrame.font.
| def gui_modules.histogram.HistFrame.SetHistLayer | ( | self, | |
| name | |||
| ) |
Set histogram layer.
Definition at line 341 of file histogram.py.
References gui_modules.dbm.VirtualAttributeList.layer, gui_modules.colorrules.ColorTable.layer, gui_modules.histogram.HistFrame.layer, gui_modules.dbm.AttributeManager.layer, gui_modules.histogram.BufferedWindow.mapname, and gui_modules.histogram.HistFrame.mapname.
Referenced by gui_modules.histogram.HistFrame.GetOptData().
| gui_modules.histogram.HistFrame.encoding |
Definition at line 279 of file histogram.py.
Referenced by gui_modules.preferences.DefaultFontDialog.OnEncoding(), and gui_modules.histogram.HistFrame.SetHistFont().
| gui_modules.histogram.HistFrame.font |
Definition at line 278 of file histogram.py.
Referenced by gui_modules.psmap.PsMapBufferedWindow.Draw(), gui_modules.preferences.DefaultFontDialog.EvtListBox(), gui_modules.preferences.DefaultFontDialog.EvtListBoxDClick(), and gui_modules.histogram.HistFrame.SetHistFont().
| gui_modules.histogram.HistFrame.height |
Definition at line 311 of file histogram.py.
Referenced by gui_modules.render.Map.AdjustRegion(), gui_modules.render.Map.AlignExtentFromDisplay(), gui_modules.render.Map.ChangeMapSize(), gui_modules.render.Map.Render(), gui_modules.wxnviz.Nviz.ResizeWindow(), and gui_modules.wxnviz.Nviz.SaveToFile().
| gui_modules.histogram.HistFrame.HistWindow |
Definition at line 296 of file histogram.py.
Referenced by gui_modules.histogram.HistFrame.GetWindow().
| gui_modules.histogram.HistFrame.layer |
| gui_modules.histogram.HistFrame.Map |
Definition at line 271 of file histogram.py.
Referenced by gui_modules.mapdisp.MapFrame.AddToolbar(), gui_modules.layertree.LayerTree.GetMap(), gui_modules.mapdisp.MapFrame.GetRender(), and gui_modules.mapdisp_window.BufferedWindow.OnMouseEnter().
| gui_modules.histogram.HistFrame.mapname |
Definition at line 285 of file histogram.py.
Referenced by gui_modules.histogram.HistFrame.OnOptions(), and gui_modules.histogram.HistFrame.SetHistLayer().
| gui_modules.histogram.HistFrame.params |
Definition at line 275 of file histogram.py.
Referenced by python.task.grassTask.define_first(), python.task.grassTask.get_list_params(), python.task.grassTask.get_options(), python.task.grassTask.get_param(), python.task.grassTask.getCmd(), python.task.grassTask.getCmdError(), gui_modules.histogram.HistFrame.GetOptData(), gui_modules.mapdisp.MapFrame.GetOptData(), python.task.grassTask.has_required(), and gui_modules.histogram.HistFrame.OnOptions().
| gui_modules.histogram.HistFrame.printopt |
Definition at line 302 of file histogram.py.
| gui_modules.histogram.HistFrame.propwin |
Definition at line 276 of file histogram.py.
Referenced by gui_modules.histogram.HistFrame.GetOptData(), and gui_modules.mapdisp.MapFrame.GetOptData().
| gui_modules.histogram.HistFrame.statusbar |
Definition at line 286 of file histogram.py.
| gui_modules.histogram.HistFrame.toolbar |