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

Public Member Functions

def __init__
 Dialog for interactively entering rules for map management commands.
def OnAddRules
 Add rules button pressed.
def AddRules
 Add rules.
def InitDisplay
 Initialize preview display, set dimensions and region.
def OnErase
 Erase the histogram display.
def OnCloseWindow
 Window closed Also remove associated rendered images.
def OnSelectionInput
 Raster/vector map selected.
def OnLayerSelection
def OnColumnSelection
def OnRGBColSelection
def OnRuleEnable
 Rule enabled/disabled.
def OnRuleValue
 Rule value changed.
def OnRuleColor
 Rule color changed.
def SQLConvert
def OnLoadTable
 Load current color table (using r.colors.out)
def OnSaveTable
 Save color table to file.
def OnApply
 Apply selected color table.
def OnOK
 Apply selected color table and close the dialog.
def OnCancel
 Do not apply any changes and close the dialog.
def OnPreview
 Update preview (based on computational region)
def OnHelp
 Show GRASS manual page.
def CreateColorTable
 Creates color table.

Data Fields

 parent
 raster
 inmap
 properties
 ruleslines
 Map
 layer
 inputSizer
 selectionInput
 ovrwrtcheck
 btnSave
 cb_vl_label
 cb_vc_label
 cb_vrgb_label
 cb_vlayer
 cb_vcol
 cb_vrgb
 cr_label
 cr_panel
 numRules
 preview
 btnCancel
 btnApply
 btnOK
 btnPreview
 btnAdd
 helpbtn
 cr_sizer
 width
 height
 vlayer
 vtable

Detailed Description

Definition at line 39 of file colorrules.py.


Constructor & Destructor Documentation

def gui_modules.colorrules.ColorTable.__init__ (   self,
  parent,
  raster,
  id = wx.ID_ANY,
  title = _("Set color table"),
  style = wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER,
  kwargs 
)

Dialog for interactively entering rules for map management commands.

Parameters:
rasterTrue to raster otherwise vector

Definition at line 42 of file colorrules.py.


Member Function Documentation

def gui_modules.colorrules.ColorTable.CreateColorTable (   self,
  force = False 
)
def gui_modules.colorrules.ColorTable.InitDisplay (   self)

Initialize preview display, set dimensions and region.

Definition at line 337 of file colorrules.py.

def gui_modules.colorrules.ColorTable.OnAddRules (   self,
  event 
)

Add rules button pressed.

Definition at line 302 of file colorrules.py.

References gui_modules.colorrules.ColorTable.AddRules().

def gui_modules.colorrules.ColorTable.OnApply (   self,
  event 
)
def gui_modules.colorrules.ColorTable.OnCloseWindow (   self,
  event 
)

Window closed Also remove associated rendered images.

Definition at line 349 of file colorrules.py.

Referenced by gui_modules.ghelp.AboutWindow.__init__().

def gui_modules.colorrules.ColorTable.OnColumnSelection (   self,
  event 
)

Definition at line 425 of file colorrules.py.

References gui_modules.colorrules.ColorTable.properties.

def gui_modules.colorrules.ColorTable.OnErase (   self,
  event 
)

Erase the histogram display.

Definition at line 344 of file colorrules.py.

def gui_modules.colorrules.ColorTable.OnHelp (   self,
  event 
)

Show GRASS manual page.

Definition at line 634 of file colorrules.py.

References gui_modules.colorrules.ColorTable.raster.

Referenced by gui_modules.menuform.mainFrame.OnKeyUp().

def gui_modules.colorrules.ColorTable.OnLayerSelection (   self,
  event 
)

Definition at line 417 of file colorrules.py.

def gui_modules.colorrules.ColorTable.OnLoadTable (   self,
  event 
)
def gui_modules.colorrules.ColorTable.OnOK (   self,
  event 
)

Apply selected color table and close the dialog.

Definition at line 565 of file colorrules.py.

References gui_modules.colorrules.ColorTable.OnApply().

def gui_modules.colorrules.ColorTable.OnPreview (   self,
  event = None,
  tmp = True 
)
def gui_modules.colorrules.ColorTable.OnRGBColSelection (   self,
  event 
)

Definition at line 428 of file colorrules.py.

References gui_modules.colorrules.ColorTable.properties.

def gui_modules.colorrules.ColorTable.OnRuleColor (   self,
  event 
)

Rule color changed.

Definition at line 475 of file colorrules.py.

References gui_modules.colorrules.ColorTable.ruleslines.

Referenced by gui_modules.colorrules.ColorTable.AddRules().

def gui_modules.colorrules.ColorTable.OnRuleEnable (   self,
  event 
)

Rule enabled/disabled.

Definition at line 431 of file colorrules.py.

References gui_modules.colorrules.ColorTable.ruleslines.

Referenced by gui_modules.colorrules.ColorTable.AddRules().

def gui_modules.colorrules.ColorTable.OnRuleValue (   self,
  event 
)
def gui_modules.colorrules.ColorTable.OnSaveTable (   self,
  event 
)

Save color table to file.

Definition at line 531 of file colorrules.py.

def gui_modules.colorrules.ColorTable.SQLConvert (   self,
  vals 
)

Field Documentation

gui_modules.colorrules.ColorTable.btnAdd

Definition at line 160 of file colorrules.py.

gui_modules.colorrules.ColorTable.btnApply

Definition at line 151 of file colorrules.py.

gui_modules.colorrules.ColorTable.btnCancel

Definition at line 150 of file colorrules.py.

gui_modules.colorrules.ColorTable.btnOK

Definition at line 152 of file colorrules.py.

gui_modules.colorrules.ColorTable.btnPreview

Definition at line 157 of file colorrules.py.

gui_modules.colorrules.ColorTable.btnSave

Definition at line 120 of file colorrules.py.

gui_modules.colorrules.ColorTable.cb_vc_label

Definition at line 126 of file colorrules.py.

gui_modules.colorrules.ColorTable.cb_vcol

Definition at line 131 of file colorrules.py.

gui_modules.colorrules.ColorTable.cb_vl_label

Definition at line 124 of file colorrules.py.

gui_modules.colorrules.ColorTable.cb_vlayer

Definition at line 130 of file colorrules.py.

gui_modules.colorrules.ColorTable.cb_vrgb

Definition at line 132 of file colorrules.py.

gui_modules.colorrules.ColorTable.cb_vrgb_label

Definition at line 128 of file colorrules.py.

gui_modules.colorrules.ColorTable.cr_label

Definition at line 135 of file colorrules.py.

gui_modules.colorrules.ColorTable.cr_panel

Definition at line 137 of file colorrules.py.

Referenced by gui_modules.colorrules.ColorTable.AddRules().

gui_modules.colorrules.ColorTable.cr_sizer

Definition at line 295 of file colorrules.py.

gui_modules.colorrules.ColorTable.helpbtn

Definition at line 161 of file colorrules.py.

gui_modules.colorrules.ColorTable.inputSizer

Definition at line 106 of file colorrules.py.

gui_modules.colorrules.ColorTable.layer

Definition at line 90 of file colorrules.py.

Referenced by gui_modules.dbm.VirtualAttributeList.AddDataRow(), gui_modules.dbm.AttributeManager.AddQueryMapLayer(), gui_modules.dbm.AttributeManager.ApplyCommands(), gui_modules.sqlbuilder.SQLFrame.OnAddValue(), gui_modules.menuform.mainFrame.OnApply(), gui_modules.dbm.AttributeManager.OnApplySqlStatement(), gui_modules.dbm.AttributeManager.OnBuilderEvt(), gui_modules.menuform.mainFrame.OnCancel(), gui_modules.dbm.VirtualAttributeList.OnColumnCompute(), gui_modules.dbm.AttributeManager.OnDataItemAdd(), gui_modules.dbm.AttributeManager.OnDataItemDelete(), gui_modules.dbm.AttributeManager.OnDataItemDeleteAll(), gui_modules.dbm.AttributeManager.OnDataItemEdit(), gui_modules.dbm.AttributeManager.OnDataSelectAll(), gui_modules.dbm.AttributeManager.OnDataSelectNone(), gui_modules.dbm.AttributeManager.OnDeleteSelected(), gui_modules.dbm.AttributeManager.OnExtractSelected(), gui_modules.dbm.AttributeManager.OnLayerPageChanged(), gui_modules.dbm.AttributeManager.OnPageChanged(), gui_modules.colorrules.ColorTable.OnPreview(), gui_modules.dbm.AttributeManager.OnTableAddColumnName(), gui_modules.dbm.AttributeManager.OnTableChangeType(), gui_modules.dbm.AttributeManager.OnTableItemChange(), gui_modules.dbm.AttributeManager.OnTableItemDelete(), gui_modules.dbm.AttributeManager.OnTableItemDeleteAll(), gui_modules.dbm.AttributeManager.OnTableReload(), gui_modules.dbm.AttributeManager.OnTableRenameColumnName(), gui_modules.sqlbuilder.SQLFrame.OnUniqueValues(), gui_modules.histogram.HistFrame.SetHistLayer(), gui_modules.dbm.VirtualAttributeList.Update(), and gui_modules.dbm.AttributeManager.ValidateSelectStatement().

gui_modules.colorrules.ColorTable.numRules

Definition at line 141 of file colorrules.py.

gui_modules.colorrules.ColorTable.ovrwrtcheck

Definition at line 115 of file colorrules.py.

gui_modules.colorrules.ColorTable.parent
gui_modules.colorrules.ColorTable.selectionInput

Definition at line 111 of file colorrules.py.

gui_modules.colorrules.ColorTable.vlayer

Definition at line 419 of file colorrules.py.

gui_modules.colorrules.ColorTable.vtable

Definition at line 420 of file colorrules.py.


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