GRASS Programmer's Manual  6.4.4(2014)-r
colorrules.VectorColorTable Class Reference
Inheritance diagram for colorrules.VectorColorTable:
Collaboration diagram for colorrules.VectorColorTable:

Public Member Functions

def __init__ (self, parent, attributeType, kwargs)
 Dialog for interactively entering color rules for vector maps. More...
 
def OnPaneChanged
 
def CheckMapset (self)
 Check if current vector is in current mapset. More...
 
def NoConnection (self, vectorName)
 
def OnCheckColumn (self, event)
 Use color column instead of color table. More...
 
def EnableVectorAttributes (self, enable)
 Enable/disable part of dialog connected with db. More...
 
def DisableClearAll (self)
 Enable, disable the whole dialog. More...
 
def OnSelectionInput (self, event)
 Vector map selected. More...
 
def UpdateDialog (self)
 Update dialog after map selection. More...
 
def AddTemporaryColumn (self, type)
 Add temporary column to not overwrite the original values, need to be deleted when closing dialog and unloading map. More...
 
def DeleteTemporaryColumn (self)
 Delete temporary column. More...
 
def OnLayerSelection (self, event)
 
def OnSourceColumnSelection (self, event)
 
def OnAddColumn (self, event)
 Add GRASS(RGB,SIZE,WIDTH) column if it doesn't exist. More...
 
def CreateAttrTable (self, dcmd, layer, params, propwin)
 Create attribute table. More...
 
def LoadTable (self)
 Load table. More...
 
def LoadRulesFromColumn (self)
 Load current column (GRASSRGB, size column) More...
 
def SetRangeLabel (self)
 Set labels with info about attribute column range. More...
 
def OnFromColSelection (self, event)
 Selection in combobox (for loading values) changed. More...
 
def OnToColSelection (self, event)
 Selection in combobox (for storing values) changed. More...
 
def OnPreview
 Update preview (based on computational region) More...
 
def OnTablePreview (self, tmp)
 Update preview (based on computational region) More...
 
def OnColumnPreview (self)
 Update preview (based on computational region) More...
 
def OnHelp (self, event)
 Show GRASS manual page. More...
 
def UseAttrColumn (self, useAttrColumn)
 Find layers and apply the changes in d.vect command. More...
 
def CreateColorTable
 Create color rules (color table or color column) More...
 
def UpdateColorColumn (self, tmp)
 Creates color table. More...
 
def OnCancel (self, event)
 Do not apply any changes and close the dialog. More...
 
def OnApply (self, event)
 Apply selected color table. More...
 
- Public Member Functions inherited from colorrules.ColorTable
def __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. More...
 
def InitDisplay (self)
 Initialize preview display, set dimensions and region. More...
 
def OnCloseWindow (self, event)
 Window closed. More...
 
def OnApply (self, event)
 Apply selected color table. More...
 
def OnOK (self, event)
 Apply selected color table and close the dialog. More...
 
def OnCancel (self, event)
 Do not apply any changes, remove associated rendered images and close the dialog. More...
 
def OnSaveRulesFile (self, event)
 Save color table to file. More...
 
def OnLoadRulesFile (self, event)
 Load color table from file. More...
 
def ReadColorTable (self, ctable)
 Read color table. More...
 
def OnLoadDefaultTable (self, event)
 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 (self, ltype, cmdlist)
 Update preview (based on computational region) More...
 
def RunHelp (self, cmd)
 Show GRASS manual page. More...
 

Data Fields

 mapType
 
 attributeType
 
 version7
 
 colorTable
 
 updateColumn
 
 properties
 
 columnsProp
 
 useColumn
 
 rgb_range_label
 
 layerSelect
 
 sourceColumn
 
 fromColumn
 
 toColumn
 
 addColumn
 
 colorColumnSizer
 
 cp
 
 inmap
 
 dbInfo
 
- Data Fields inherited from colorrules.ColorTable
 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 893 of file colorrules.py.

Constructor & Destructor Documentation

def colorrules.VectorColorTable.__init__ (   self,
  parent,
  attributeType,
  kwargs 
)

Dialog for interactively entering color rules for vector maps.

Definition at line 894 of file colorrules.py.

Member Function Documentation

def colorrules.VectorColorTable.AddTemporaryColumn (   self,
  type 
)

Add temporary column to not overwrite the original values, need to be deleted when closing dialog and unloading map.

Parameters
typetype of column (e.g. vachar(11))

Definition at line 1226 of file colorrules.py.

References colorrules.ColorTable.inmap, colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, gcmd.RunCommand(), utils.split(), and colorrules.VectorColorTable.version7.

def colorrules.VectorColorTable.CheckMapset (   self)

Check if current vector is in current mapset.

Definition at line 1086 of file colorrules.py.

References colorrules.ColorTable.inmap.

Referenced by colorrules.VectorColorTable.UpdateDialog().

def colorrules.VectorColorTable.CreateColorTable (   self,
  tmp = False 
)
def colorrules.VectorColorTable.DisableClearAll (   self)

Enable, disable the whole dialog.

Definition at line 1134 of file colorrules.py.

References colorrules.VectorColorTable.EnableVectorAttributes().

Referenced by colorrules.VectorColorTable.UpdateDialog().

def colorrules.VectorColorTable.EnableVectorAttributes (   self,
  enable 
)

Enable/disable part of dialog connected with db.

Definition at line 1129 of file colorrules.py.

Referenced by colorrules.VectorColorTable.DisableClearAll().

def colorrules.VectorColorTable.LoadTable (   self)
def colorrules.VectorColorTable.NoConnection (   self,
  vectorName 
)
def colorrules.VectorColorTable.OnCancel (   self,
  event 
)

Do not apply any changes and close the dialog.

Definition at line 1618 of file colorrules.py.

References colorrules.VectorColorTable.DeleteTemporaryColumn().

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

def colorrules.VectorColorTable.OnFromColSelection (   self,
  event 
)
def colorrules.VectorColorTable.OnHelp (   self,
  event 
)

Show GRASS manual page.

Definition at line 1537 of file colorrules.py.

def colorrules.VectorColorTable.OnPaneChanged (   self,
  event = None 
)

Definition at line 1077 of file colorrules.py.

def colorrules.VectorColorTable.OnSelectionInput (   self,
  event 
)
def colorrules.VectorColorTable.OnTablePreview (   self,
  tmp 
)

Update preview (based on computational region)

Definition at line 1483 of file colorrules.py.

References utils.GetTempfile(), colorrules.ColorTable.inmap, and gcmd.RunCommand().

Referenced by colorrules.VectorColorTable.OnPreview().

def colorrules.VectorColorTable.OnToColSelection (   self,
  event 
)
def colorrules.VectorColorTable.UpdateColorColumn (   self,
  tmp 
)

Creates color table.

Returns
True on success
False on failure

Definition at line 1578 of file colorrules.py.

References colorrules.RulesPanel.attributeType, colorrules.RasterColorTable.attributeType, colorrules.VectorColorTable.attributeType, utils.GetTempfile(), pyshell.PyShellWindow.parent, menu.Menu.parent, mapwindow.MapWindow.parent, dialogs.RegionDef.parent, sqlbuilder.SQLFrame.parent, dialogs.ModelDataDialog.parent, mapdisp.MapFrameBase.parent, dialogs.DisplayAttributesDialog.parent, colorrules.RulesPanel.parent, preferences.PreferencesBaseDialog.parent, manager.Log.parent, frame.ModelFrame.parent, goutput.CmdThread.parent, frame.GMFrame.parent, manager.VirtualAttributeList.parent, toolbars.BaseToolbar.parent, manager.GCPWizard.parent, dialogs.ModelSearchDialog.parent, forms.UpdateThread.parent, goutput.GMConsole.parent, ghelp.MenuTreeWindow.parent, wizard.CoordinateSystemPage.parent, widgets.StaticWrapText.parent, dialogs.ModelRelationDialog.parent, manager.LocationPage.parent, forms.UpdateQThread.parent, colorrules.ColorTable.parent, wizard.ProjectionsPage.parent, ghelp.MenuTree.parent, forms.TaskFrame.parent, dialogs.ModelItemDialog.parent, manager.GroupPage.parent, prompt.GPrompt.parent, dialogs.DecorationDialog.parent, manager.AttributeManager.parent, dialogs.ModelListCtrl.parent, manager.DispMapPage.parent, wizard.ProjParamsPage.parent, gselect.LayerSelect.parent, dialogs.TextLayerDialog.parent, forms.CmdPanel.parent, manager.GCP.parent, ghelp.HelpWindow.parent, dialogs.GroupDialog.parent, wizard.DatumPage.parent, model.ModelAction.parent, dialogs.ItemCheckListCtrl.parent, frame.ModelCanvas.parent, wizard.EllipsePage.parent, goutput.GMStdout.parent, goutput.GMStderr.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.GMStc.parent, dialogs.MapLayersDialog.parent, goutput.PyStc.parent, model.ModelRelation.parent, wizard.EPSGPage.parent, frame.VariablePanel.parent, model.ModelItem.parent, dialogs.ImportDialog.parent, frame.ItemPanel.parent, wizard.CustomPage.parent, frame.PythonPanel.parent, wizard.SummaryPage.parent, preferences.CheckListMapset.parent, wizard.LocationWizard.parent, forms.GUI.parent, dialogs.LayersList.parent, dialogs.SetOpacityDialog.parent, dialogs.ImageSizeDialog.parent, model.ModelParamDialog.parent, manager.TableListCtrl.parent, manager.LayerListCtrl.parent, manager.GrSettingsDialog.parent, manager.LayerBook.parent, colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, and gcmd.RunCommand().

Referenced by colorrules.VectorColorTable.CreateColorTable().

Field Documentation

colorrules.VectorColorTable.addColumn

Definition at line 978 of file colorrules.py.

colorrules.VectorColorTable.colorColumnSizer

Definition at line 1016 of file colorrules.py.

colorrules.VectorColorTable.columnsProp
colorrules.VectorColorTable.cp

Definition at line 1035 of file colorrules.py.

colorrules.VectorColorTable.dbInfo

Definition at line 1185 of file colorrules.py.

Referenced by colorrules.VectorColorTable.OnLayerSelection().

colorrules.VectorColorTable.fromColumn

Definition at line 976 of file colorrules.py.

Referenced by colorrules.VectorColorTable.CreateAttrTable().

colorrules.VectorColorTable.layerSelect

Definition at line 974 of file colorrules.py.

Referenced by colorrules.VectorColorTable.CreateAttrTable().

colorrules.VectorColorTable.mapType
colorrules.VectorColorTable.rgb_range_label

Definition at line 973 of file colorrules.py.

colorrules.VectorColorTable.sourceColumn

Definition at line 975 of file colorrules.py.

Referenced by colorrules.VectorColorTable.CreateAttrTable().

colorrules.VectorColorTable.toColumn

Definition at line 977 of file colorrules.py.

Referenced by colorrules.VectorColorTable.CreateAttrTable().

colorrules.VectorColorTable.updateColumn
colorrules.VectorColorTable.useColumn

Definition at line 964 of file colorrules.py.


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