GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
colorrules.ColorTable Class Reference
Inheritance diagram for colorrules.ColorTable:

Public Member Functions

def __init__
 Dialog for interactively entering rules for map management commands.
def InitDisplay
 Initialize preview display, set dimensions and region.
def OnCloseWindow
 Window closed.
def OnApply
 Apply selected color table.
def OnOK
 Apply selected color table and close the dialog.
def OnCancel
 Do not apply any changes, remove associated rendered images and close the dialog.
def OnSaveRulesFile
 Save color table to file.
def OnLoadRulesFile
 Load color table from file.
def ReadColorTable
 Read color table.
def OnLoadDefaultTable
 Load internal color table.
def LoadTable
 Load current color table (using r(v).colors.out)
def CreateColorTable
 Creates color table.
def DoPreview
 Update preview (based on computational region)
def RunHelp
 Show GRASS manual page.

Data Fields

 parent
 panel
 Map
 inmap
 layer
 mapType
 selectionInput
 loadRules
 saveRules
 preview
 btnHelp
 btnCancel
 btnApply
 btnOK
 cr_label
 rulesPanel
 btnPreview
 width
 height

Detailed Description

Definition at line 312 of file colorrules.py.


Constructor & Destructor Documentation

def colorrules.ColorTable.__init__ (   self,
  parent,
  title,
  id = wx.ID_ANY,
  style = wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER,
  kwargs 
)

Dialog for interactively entering rules for map management commands.

Definition at line 315 of file colorrules.py.


Member Function Documentation

Initialize preview display, set dimensions and region.

Definition at line 515 of file colorrules.py.

def colorrules.ColorTable.OnApply (   self,
  event 
)
def colorrules.ColorTable.OnCancel (   self,
  event 
)

Do not apply any changes, remove associated rendered images and close the dialog.

Reimplemented in colorrules.VectorColorTable.

Definition at line 549 of file colorrules.py.

Referenced by colorrules.ColorTable.OnCloseWindow(), dialogs.VDigitCategoryDialog.OnOK(), and colorrules.ColorTable.OnOK().

def colorrules.ColorTable.OnLoadDefaultTable (   self,
  event 
)

Load internal color table.

Definition at line 628 of file colorrules.py.

References colorrules.ColorTable.LoadTable().

def colorrules.ColorTable.OnLoadRulesFile (   self,
  event 
)

Load color table from file.

Definition at line 575 of file colorrules.py.

References colorrules.ColorTable.ReadColorTable().

def colorrules.ColorTable.OnSaveRulesFile (   self,
  event 
)

Save color table to file.

Definition at line 555 of file colorrules.py.

def colorrules.ColorTable.RunHelp (   self,
  cmd 
)

Show GRASS manual page.

Definition at line 720 of file colorrules.py.

References gcmd.RunCommand().


Field Documentation

Definition at line 444 of file colorrules.py.

Definition at line 443 of file colorrules.py.

Definition at line 442 of file colorrules.py.

Definition at line 445 of file colorrules.py.

Definition at line 499 of file colorrules.py.

Definition at line 473 of file colorrules.py.

Definition at line 391 of file colorrules.py.

Definition at line 324 of file colorrules.py.

Definition at line 479 of file colorrules.py.

Definition at line 400 of file colorrules.py.


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