GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Main frame for hisgram display window. More...
Public Member Functions | |
def | __init__ |
def | InitDisplay |
Initialize histogram display, set dimensions and region. More... | |
def | OnOptions |
Change histogram settings. More... | |
def | GetOptData |
Callback method for histogram command generated by dialog created in menuform.py. More... | |
def | SetHistLayer |
Set histogram layer. More... | |
def | SetHistFont |
Set font for histogram. More... | |
def | OnErase |
Erase the histogram display. More... | |
def | OnRender |
Re-render histogram. More... | |
def | GetWindow |
Get buffered window. More... | |
def | SaveToFile |
Save to file. More... | |
def | PrintMenu |
Print options and output menu. More... | |
def | OnQuit |
def | OnCloseWindow |
Window closed Also remove associated rendered images. More... | |
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 263 of file histogram.py.
def histogram.HistogramFrame.__init__ | ( | self, | |
parent = None , |
|||
id = wx.ID_ANY , |
|||
title = _("GRASS GIS Histogramming Tool (d.histogram)") , |
|||
size = wx.Size(500, 350 , |
|||
style = wx.DEFAULT_FRAME_STYLE , |
|||
kwargs | |||
) |
Definition at line 270 of file histogram.py.
def histogram.HistogramFrame.GetOptData | ( | self, | |
dcmd, | |||
layer, | |||
params, | |||
propwin | |||
) |
Callback method for histogram command generated by dialog created in menuform.py.
Definition at line 336 of file histogram.py.
References utils.GetLayerNameFromCmd(), histogram.HistogramFrame.params, model.ModelParamDialog.params, histogram.HistogramFrame.propwin, and histogram.HistogramFrame.SetHistLayer().
Referenced by histogram.HistogramFrame.OnOptions().
def histogram.HistogramFrame.GetWindow | ( | self | ) |
Get buffered window.
Definition at line 396 of file histogram.py.
References histogram.HistogramFrame.HistWindow.
Referenced by dialogs.TCValidator.Validate(), widgets.BaseValidator.Validate(), and widgets.GenericValidator.Validate().
def histogram.HistogramFrame.InitDisplay | ( | self | ) |
Initialize histogram display, set dimensions and region.
Definition at line 322 of file histogram.py.
def histogram.HistogramFrame.OnCloseWindow | ( | self, | |
event | |||
) |
Window closed Also remove associated rendered images.
Definition at line 465 of file histogram.py.
def histogram.HistogramFrame.OnErase | ( | self, | |
event | |||
) |
Erase the histogram display.
Definition at line 386 of file histogram.py.
def histogram.HistogramFrame.OnOptions | ( | self, | |
event | |||
) |
Change histogram settings.
Definition at line 328 of file histogram.py.
References histogram.HistogramFrame.GetOptData(), dialogs.DecorationDialog.GetOptData(), frame.ModelFrame.GetOptData(), frame.MapFrame.GetOptData(), layertree.LayerTree.GetOptData(), histogram.BufferedWindow.mapname, histogram.HistogramFrame.mapname, histogram.HistogramFrame.params, and model.ModelParamDialog.params.
def histogram.HistogramFrame.OnQuit | ( | self, | |
event | |||
) |
Definition at line 462 of file histogram.py.
def histogram.HistogramFrame.OnRender | ( | self, | |
event | |||
) |
Re-render histogram.
Definition at line 391 of file histogram.py.
def histogram.HistogramFrame.PrintMenu | ( | self, | |
event | |||
) |
Print options and output menu.
Definition at line 439 of file histogram.py.
def histogram.HistogramFrame.SaveToFile | ( | self, | |
event | |||
) |
def histogram.HistogramFrame.SetHistFont | ( | self, | |
event | |||
) |
Set font for histogram.
If not set, font will be default display font.
Definition at line 365 of file histogram.py.
References histogram.HistogramFrame.encoding, preferences.DefaultFontDialog.encoding, histogram.HistogramFrame.font, and preferences.DefaultFontDialog.font.
def histogram.HistogramFrame.SetHistLayer | ( | self, | |
name, | |||
cmd = None |
|||
) |
Set histogram layer.
Definition at line 353 of file histogram.py.
References sqlbuilder.SQLFrame.layer, manager.VirtualAttributeList.layer, histogram.HistogramFrame.layer, colorrules.ColorTable.layer, forms.TaskFrame.layer, manager.AttributeManager.layer, histogram.BufferedWindow.mapname, and histogram.HistogramFrame.mapname.
Referenced by histogram.HistogramFrame.GetOptData().
histogram.HistogramFrame.encoding |
Definition at line 282 of file histogram.py.
Referenced by histogram.HistogramFrame.SetHistFont().
histogram.HistogramFrame.font |
Definition at line 281 of file histogram.py.
Referenced by histogram.HistogramFrame.SetHistFont().
histogram.HistogramFrame.height |
Definition at line 325 of file histogram.py.
Referenced by wxnviz.Texture.Draw(), utils.Rect2D.GetHeight(), wxnviz.Texture.Load(), wxnviz.Texture.Resize(), wxnviz.Nviz.ResizeWindow(), wxnviz.Nviz.SaveToFile(), and wxnviz.Nviz.Start2D().
histogram.HistogramFrame.HistWindow |
Definition at line 306 of file histogram.py.
Referenced by histogram.HistogramFrame.GetWindow().
histogram.HistogramFrame.layer |
Definition at line 275 of file histogram.py.
Referenced by histogram.HistogramFrame.SetHistLayer().
histogram.HistogramFrame.Map |
Definition at line 274 of file histogram.py.
Referenced by frame.MapFrame.AddNviz(), frame.MapFrame.AddToolbar(), and frame.MapFrame.GetMapWindow().
histogram.HistogramFrame.mapname |
Definition at line 288 of file histogram.py.
Referenced by histogram.HistogramFrame.OnOptions(), and histogram.HistogramFrame.SetHistLayer().
histogram.HistogramFrame.params |
Definition at line 278 of file histogram.py.
Referenced by python.task.grassTask.define_first(), python.task.grassTask.get_cmd(), python.task.grassTask.get_cmd_error(), python.task.grassTask.get_list_params(), python.task.grassTask.get_options(), python.task.grassTask.get_param(), histogram.HistogramFrame.GetOptData(), frame.MapFrame.GetOptData(), python.task.grassTask.has_required(), and histogram.HistogramFrame.OnOptions().
histogram.HistogramFrame.printopt |
Definition at line 312 of file histogram.py.
histogram.HistogramFrame.propwin |
Definition at line 279 of file histogram.py.
Referenced by histogram.HistogramFrame.GetOptData(), and frame.MapFrame.GetOptData().
histogram.HistogramFrame.statusbar |
Definition at line 296 of file histogram.py.
histogram.HistogramFrame.toolbar |
Definition at line 284 of file histogram.py.
Referenced by mapwindow.BufferedWindow.OnDragging(), mapwindow.VDigitWindow.OnKeyDown(), mapwindow.VDigitWindow.OnLeftDownUndo(), and mapwindow.VDigitWindow.SetToolbar().