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 265 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.
References gui_modules.histogram.HistFrame.HistWindow.
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.
References gui_modules.gcpmapdisp.MapFrame.printopt, and gui_modules.histogram.HistFrame.printopt.
def gui_modules.histogram.HistFrame.SaveToFile | ( | self, | |
event | |||
) |
Save to file.
Definition at line 387 of file histogram.py.
References gui_modules.histogram.HistFrame.HistWindow.
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.colorrules.ColorTable.layer, gui_modules.dbm.VirtualAttributeList.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().
Definition at line 265 of file histogram.py.
Referenced by gui_modules.preferences.DefaultFontDialog.OnEncoding(), and gui_modules.histogram.HistFrame.SetHistFont().
Definition at line 265 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().
Definition at line 309 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().
Definition at line 265 of file histogram.py.
Referenced by gui_modules.histogram.HistFrame.GetWindow(), gui_modules.colorrules.ColorTable.OnErase(), gui_modules.histogram.HistFrame.OnErase(), and gui_modules.histogram.HistFrame.SaveToFile().
Definition at line 265 of file histogram.py.
Referenced by gui_modules.mapdisp.MapFrame::AddToolbar(), gui_modules.mapdisp_window.BufferedWindow::Cell2Pixel(), gui_modules.mapdisp.MapFrame::FormatDist(), gui_modules.mapdisp_window.BufferedWindow::GetImage(), gui_modules.layertree.LayerTree::GetMap(), gui_modules.mapdisp.MapFrame::GetRender(), gui_modules.mapdisp.MapFrame::MeasureDist(), gui_modules.mapdisp.MapFrame::OnAlignRegion(), gui_modules.mapdisp.MapFrame::OnChangeMapScale(), gui_modules.mapdisp.MapFrame::OnGoTo(), gui_modules.mapdisp_window.BufferedWindow::OnLeftUp(), gui_modules.mapdisp_window.BufferedWindow::OnMouseEnter(), gui_modules.mapdisp_window.BufferedWindow::OnMouseWheel(), gui_modules.mapdisp_window.BufferedWindow::Pixel2Cell(), gui_modules.mapdisp.MapFrame::QueryVector(), gui_modules.mapdisp.MapFrame::StatusbarUpdate(), gui_modules.mapdisp_window.BufferedWindow::Zoom(), gui_modules.mapdisp_window.BufferedWindow::ZoomToDefault(), gui_modules.mapdisp_window.BufferedWindow::ZoomToMap(), gui_modules.mapdisp_window.BufferedWindow::ZoomToSaved(), and gui_modules.mapdisp_window.BufferedWindow::ZoomToWind().
Definition at line 265 of file histogram.py.
Referenced by gui_modules.histogram.HistFrame.OnOptions(), and gui_modules.histogram.HistFrame.SetHistLayer().
Definition at line 265 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().
Definition at line 265 of file histogram.py.
Referenced by gui_modules.histogram.HistFrame.PrintMenu(), and gui_modules.mapdisp.MapFrame.PrintMenu().
Definition at line 265 of file histogram.py.
Referenced by gui_modules.histogram.HistFrame.GetOptData(), and gui_modules.mapdisp.MapFrame.GetOptData().
Definition at line 265 of file histogram.py.