GRASS Programmer's Manual  6.4.4(2014)-r
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
colorrules.ColorTable Class Reference
Inheritance diagram for colorrules.ColorTable:
Collaboration diagram for colorrules.ColorTable:

Public Member Functions

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

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

def colorrules.ColorTable.DoPreview (   self,
  ltype,
  cmdlist 
)
def colorrules.ColorTable.InitDisplay (   self)

Initialize preview display, set dimensions and region.

Definition at line 515 of file colorrules.py.

def colorrules.ColorTable.OnCancel (   self,
  event 
)

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

Definition at line 549 of file colorrules.py.

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

def colorrules.ColorTable.OnCloseWindow (   self,
  event 
)
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

colorrules.ColorTable.btnApply

Definition at line 444 of file colorrules.py.

colorrules.ColorTable.btnCancel

Definition at line 443 of file colorrules.py.

colorrules.ColorTable.btnHelp

Definition at line 442 of file colorrules.py.

colorrules.ColorTable.btnOK

Definition at line 445 of file colorrules.py.

colorrules.ColorTable.btnPreview

Definition at line 499 of file colorrules.py.

colorrules.ColorTable.cr_label

Definition at line 473 of file colorrules.py.

colorrules.ColorTable.layer
colorrules.ColorTable.loadRules

Definition at line 391 of file colorrules.py.

colorrules.ColorTable.Map
colorrules.ColorTable.panel

Definition at line 324 of file colorrules.py.

colorrules.ColorTable.rulesPanel

Definition at line 479 of file colorrules.py.

colorrules.ColorTable.saveRules

Definition at line 400 of file colorrules.py.

colorrules.ColorTable.selectionInput

Definition at line 376 of file colorrules.py.


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