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

Public Member Functions

def __init__
 Dialog for interactively entering color rules for vector maps.
def OnPaneChanged
def CheckMapset
 Check if current vector is in current mapset.
def NoConnection
def OnCheckColumn
 Use color column instead of color table.
def EnableVectorAttributes
 Enable/disable part of dialog connected with db.
def DisableClearAll
 Enable, disable the whole dialog.
def OnSelectionInput
 Vector map selected.
def UpdateDialog
 Update dialog after map selection.
def AddTemporaryColumn
 Add temporary column to not overwrite the original values, need to be deleted when closing dialog and unloading map.
def DeleteTemporaryColumn
 Delete temporary column.
def OnLayerSelection
def OnSourceColumnSelection
def OnAddColumn
 Add GRASS(RGB,SIZE,WIDTH) column if it doesn't exist.
def CreateAttrTable
 Create attribute table.
def LoadTable
 Load table.
def LoadRulesFromColumn
 Load current column (GRASSRGB, size column)
def SetRangeLabel
 Set labels with info about attribute column range.
def OnFromColSelection
 Selection in combobox (for loading values) changed.
def OnToColSelection
 Selection in combobox (for storing values) changed.
def OnPreview
 Update preview (based on computational region)
def OnTablePreview
 Update preview (based on computational region)
def OnColumnPreview
 Update preview (based on computational region)
def OnHelp
 Show GRASS manual page.
def UseAttrColumn
 Find layers and apply the changes in d.vect command.
def CreateColorTable
 Create color rules (color table or color column)
def UpdateColorColumn
 Creates color table.
def OnCancel
 Do not apply any changes and close the dialog.
def OnApply
 Apply selected color table.

Data Fields

 mapType
 attributeType
 version7
 colorTable
 updateColumn
 properties
 columnsProp
 useColumn
 rgb_range_label
 layerSelect
 sourceColumn
 fromColumn
 toColumn
 addColumn
 colorColumnSizer
 cp
 inmap
 dbInfo

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

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.

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().

Enable, disable the whole dialog.

Definition at line 1134 of file colorrules.py.

References colorrules.VectorColorTable.EnableVectorAttributes().

Referenced by colorrules.VectorColorTable.UpdateDialog().

Enable/disable part of dialog connected with db.

Definition at line 1129 of file colorrules.py.

Referenced by colorrules.VectorColorTable.DisableClearAll().

def colorrules.VectorColorTable.OnCancel (   self,
  event 
)

Do not apply any changes and close the dialog.

Reimplemented from colorrules.ColorTable.

Definition at line 1618 of file colorrules.py.

References colorrules.VectorColorTable.DeleteTemporaryColumn().

Referenced by dialogs.VDigitCategoryDialog.OnOK().

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.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().

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, preferences.PreferencesBaseDialog.parent, colorrules.RulesPanel.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, ghelp.MenuTreeWindow.parent, goutput.GMConsole.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, wizard.DatumPage.parent, model.ModelAction.parent, dialogs.GroupDialog.parent, goutput.GMStdout.parent, dialogs.ItemCheckListCtrl.parent, goutput.GMStderr.parent, frame.ModelCanvas.parent, wizard.EllipsePage.parent, goutput.GMStc.parent, model.ModelData.parent, gselect.GdalSelect.parent, goutput.PyStc.parent, dialogs.MapLayersDialog.parent, wizard.EPSGPage.parent, model.ModelRelation.parent, frame.VariablePanel.parent, model.ModelItem.parent, frame.ItemPanel.parent, frame.PythonPanel.parent, dialogs.ImportDialog.parent, wizard.CustomPage.parent, preferences.CheckListMapset.parent, wizard.SummaryPage.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

Definition at line 1035 of file colorrules.py.


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