GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gui_modules.histogram.HistFrame Class Reference

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

Detailed Description

Main frame for hisgram display window.

Uses d.histogram rendered onto canvas

Definition at line 261 of file histogram.py.

Constructor & Destructor Documentation

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.

Member Function Documentation

def gui_modules.histogram.HistFrame.GetOptData (   self,
  dcmd,
  layer,
  params,
  propwin 
)
def gui_modules.histogram.HistFrame.GetWindow (   self)
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.OnQuit (   self,
  event 
)

Definition at line 449 of file histogram.py.

def gui_modules.histogram.HistFrame.OnRender (   self,
  event 
)
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.

Field Documentation

gui_modules.histogram.HistFrame.encoding
gui_modules.histogram.HistFrame.HistWindow

Definition at line 296 of file histogram.py.

Referenced by gui_modules.histogram.HistFrame.GetWindow().

gui_modules.histogram.HistFrame.mapname
gui_modules.histogram.HistFrame.printopt

Definition at line 302 of file histogram.py.

gui_modules.histogram.HistFrame.propwin
gui_modules.histogram.HistFrame.statusbar

Definition at line 286 of file histogram.py.


The documentation for this class was generated from the following file: