GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
histogram.HistogramFrame Class Reference

Main frame for hisgram display window. More...

Inheritance diagram for histogram.HistogramFrame:
Collaboration diagram for histogram.HistogramFrame:

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
 

Detailed Description

Main frame for hisgram display window.

Uses d.histogram rendered onto canvas

Definition at line 263 of file histogram.py.

Constructor & Destructor Documentation

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.

Member Function Documentation

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)
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.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 
)

Save to file.

Definition at line 400 of file histogram.py.

References dialogs.GetImageHandlers().

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.

Field Documentation

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.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
histogram.HistogramFrame.mapname
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.


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