GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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 OnSetTable
 Load pre-defined color table. 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...
 
def SetMap
 Set map name and update dialog. More...
 

Data Fields

 parent
 
 layerTree
 
 panel
 
 Map
 
 inmap
 
 layer
 
 mapType
 
 selectionInput
 
 loadRules
 
 saveRules
 
 btnSet
 
 preview
 
 btnHelp
 
 btnCancel
 
 btnApply
 
 btnOK
 
 btnDefault
 
 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,
  layerTree = None,
  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 533 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 567 of file colorrules.py.

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

def colorrules.ColorTable.OnLoadDefaultTable (   self,
  event 
)

Load internal color table.

Definition at line 663 of file colorrules.py.

References colorrules.ColorTable.LoadTable().

def colorrules.ColorTable.OnLoadRulesFile (   self,
  event 
)

Load color table from file.

Definition at line 610 of file colorrules.py.

References colorrules.ColorTable.ReadColorTable().

def colorrules.ColorTable.OnSaveRulesFile (   self,
  event 
)

Save color table to file.

Definition at line 590 of file colorrules.py.

def colorrules.ColorTable.OnSetTable (   self,
  event 
)

Load pre-defined color table.

Definition at line 573 of file colorrules.py.

References colorrules.ColorTable.inmap, colorrules.ColorTable.ReadColorTable(), and gcmd.RunCommand().

def colorrules.ColorTable.RunHelp (   self,
  cmd 
)

Show GRASS manual page.

Definition at line 755 of file colorrules.py.

References gcmd.RunCommand().

def colorrules.ColorTable.SetMap (   self,
  name 
)

Set map name and update dialog.

Definition at line 762 of file colorrules.py.

Field Documentation

colorrules.ColorTable.btnApply

Definition at line 457 of file colorrules.py.

colorrules.ColorTable.btnCancel

Definition at line 456 of file colorrules.py.

colorrules.ColorTable.btnDefault

Definition at line 459 of file colorrules.py.

colorrules.ColorTable.btnHelp

Definition at line 455 of file colorrules.py.

colorrules.ColorTable.btnOK

Definition at line 458 of file colorrules.py.

colorrules.ColorTable.btnPreview

Definition at line 517 of file colorrules.py.

colorrules.ColorTable.btnSet

Definition at line 417 of file colorrules.py.

colorrules.ColorTable.cr_label

Definition at line 491 of file colorrules.py.

colorrules.ColorTable.layer
colorrules.ColorTable.layerTree

Definition at line 320 of file colorrules.py.

Referenced by toolbars.VDigitToolbar.OnSelectMap().

colorrules.ColorTable.loadRules

Definition at line 397 of file colorrules.py.

colorrules.ColorTable.Map
colorrules.ColorTable.panel

Definition at line 326 of file colorrules.py.

colorrules.ColorTable.rulesPanel

Definition at line 497 of file colorrules.py.

colorrules.ColorTable.saveRules

Definition at line 405 of file colorrules.py.

colorrules.ColorTable.selectionInput

Definition at line 382 of file colorrules.py.


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