GRASS Programmer's Manual
6.4.3(2013)-r
|
Public Member Functions | |
def | __init__ |
Dialog for interactively entering color rules for vector maps. More... | |
def | OnPaneChanged |
def | CheckMapset |
Check if current vector is in current mapset. More... | |
def | NoConnection |
def | OnCheckColumn |
Use color column instead of color table. More... | |
def | EnableVectorAttributes |
Enable/disable part of dialog connected with db. More... | |
def | DisableClearAll |
Enable, disable the whole dialog. More... | |
def | OnSelectionInput |
Vector map selected. More... | |
def | UpdateDialog |
Update dialog after map selection. More... | |
def | AddTemporaryColumn |
Add temporary column to not overwrite the original values, need to be deleted when closing dialog and unloading map. More... | |
def | DeleteTemporaryColumn |
Delete temporary column. More... | |
def | OnLayerSelection |
def | OnSourceColumnSelection |
def | OnAddColumn |
Add GRASS(RGB,SIZE,WIDTH) column if it doesn't exist. More... | |
def | CreateAttrTable |
Create attribute table. More... | |
def | LoadTable |
Load table. More... | |
def | LoadRulesFromColumn |
Load current column (GRASSRGB, size column) More... | |
def | SetRangeLabel |
Set labels with info about attribute column range. More... | |
def | OnFromColSelection |
Selection in combobox (for loading values) changed. More... | |
def | OnToColSelection |
Selection in combobox (for storing values) changed. More... | |
def | OnPreview |
Update preview (based on computational region) More... | |
def | OnTablePreview |
Update preview (based on computational region) More... | |
def | OnColumnPreview |
Update preview (based on computational region) More... | |
def | OnHelp |
Show GRASS manual page. More... | |
def | 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 |
Creates color table. More... | |
def | OnCancel |
Do not apply any changes and close the dialog. More... | |
def | OnApply |
Apply selected color table. More... | |
![]() | |
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... | |
Definition at line 893 of file colorrules.py.
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.
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.
type | type 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.CreateAttrTable | ( | self, | |
dcmd, | |||
layer, | |||
params, | |||
propwin | |||
) |
Create attribute table.
Definition at line 1321 of file colorrules.py.
References utils.CmdToTuple(), colorrules.VectorColorTable.fromColumn, colorrules.VectorColorTable.layerSelect, colorrules.RasterColorTable.OnSelectionInput(), colorrules.VectorColorTable.OnSelectionInput(), gcmd.RunCommand(), colorrules.VectorColorTable.sourceColumn, and colorrules.VectorColorTable.toColumn.
Referenced by colorrules.VectorColorTable.NoConnection().
def colorrules.VectorColorTable.CreateColorTable | ( | self, | |
tmp = False |
|||
) |
Create color rules (color table or color column)
Definition at line 1566 of file colorrules.py.
References colorrules.RasterColorTable.colorTable, colorrules.VectorColorTable.colorTable, colorrules.VectorColorTable.UpdateColorColumn(), and colorrules.VectorColorTable.updateColumn.
def colorrules.VectorColorTable.DeleteTemporaryColumn | ( | self) |
Delete temporary column.
Definition at line 1249 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(), and colorrules.VectorColorTable.version7.
Referenced by colorrules.VectorColorTable.OnCancel(), and colorrules.VectorColorTable.OnSelectionInput().
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.LoadRulesFromColumn | ( | self) |
Load current column (GRASSRGB, size column)
Definition at line 1342 of file colorrules.py.
References colorrules.RulesPanel.attributeType, colorrules.RasterColorTable.attributeType, colorrules.VectorColorTable.attributeType, colorrules.ColorTable.inmap, colorrules.RasterColorTable.OnPreview(), colorrules.VectorColorTable.OnPreview(), colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, gcmd.RunCommand(), colorrules.VectorColorTable.SetRangeLabel(), and colorrules.VectorColorTable.updateColumn.
Referenced by colorrules.VectorColorTable.LoadTable().
def colorrules.VectorColorTable.LoadTable | ( | self) |
Load table.
Definition at line 1335 of file colorrules.py.
References colorrules.RasterColorTable.colorTable, colorrules.VectorColorTable.colorTable, and colorrules.VectorColorTable.LoadRulesFromColumn().
def colorrules.VectorColorTable.NoConnection | ( | self, | |
vectorName | |||
) |
Definition at line 1094 of file colorrules.py.
References colorrules.VectorColorTable.CreateAttrTable(), and colorrules.ColorTable.inmap.
def colorrules.VectorColorTable.OnAddColumn | ( | self, | |
event | |||
) |
Add GRASS(RGB,SIZE,WIDTH) column if it doesn't exist.
Definition at line 1298 of file colorrules.py.
References colorrules.RulesPanel.attributeType, colorrules.RasterColorTable.attributeType, colorrules.VectorColorTable.attributeType, colorrules.VectorColorTable.columnsProp, colorrules.ColorTable.inmap, colorrules.ColorTable.LoadTable(), colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, gcmd.RunCommand(), and colorrules.VectorColorTable.version7.
def colorrules.VectorColorTable.OnApply | ( | self, | |
event | |||
) |
Apply selected color table.
Definition at line 1624 of file colorrules.py.
References colorrules.RasterColorTable.colorTable, colorrules.VectorColorTable.colorTable, colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, and colorrules.VectorColorTable.UseAttrColumn().
Referenced by dialogs.VDigitCategoryDialog.OnOK(), dialogs.TextDialog.OnOk(), dialogs.OptDialog.OnOk(), dialogs.TextDialog.OnSave(), and dialogs.OptDialog.OnSave().
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.OnCheckColumn | ( | self, | |
event | |||
) |
Use color column instead of color table.
Definition at line 1108 of file colorrules.py.
References colorrules.RasterColorTable.colorTable, colorrules.VectorColorTable.colorTable, colorrules.ColorTable.LoadTable(), colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, and model.WriteModelFile.properties.
def colorrules.VectorColorTable.OnColumnPreview | ( | self) |
Update preview (based on computational region)
Definition at line 1515 of file colorrules.py.
References colorrules.RulesPanel.attributeType, colorrules.RasterColorTable.attributeType, colorrules.VectorColorTable.attributeType, colorrules.ColorTable.inmap, colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, and model.WriteModelFile.properties.
Referenced by colorrules.VectorColorTable.OnPreview().
def colorrules.VectorColorTable.OnFromColSelection | ( | self, | |
event | |||
) |
Selection in combobox (for loading values) changed.
Definition at line 1466 of file colorrules.py.
References colorrules.ColorTable.LoadTable(), colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, and model.WriteModelFile.properties.
def colorrules.VectorColorTable.OnHelp | ( | self, | |
event | |||
) |
Show GRASS manual page.
Definition at line 1537 of file colorrules.py.
def colorrules.VectorColorTable.OnLayerSelection | ( | self, | |
event | |||
) |
Definition at line 1261 of file colorrules.py.
References colorrules.RulesPanel.attributeType, colorrules.RasterColorTable.attributeType, colorrules.VectorColorTable.attributeType, colorrules.VectorColorTable.columnsProp, sqlbuilder.SQLFrame.dbInfo, colorrules.VectorColorTable.dbInfo, colorrules.ColorTable.inmap, colorrules.ColorTable.LoadTable(), colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, animation.Animation.Update(), manager.VirtualAttributeList.Update(), statusbar.SbManager.Update(), forms.UpdateQThread.Update(), profile.ProfileFrame.Update(), statusbar.SbItem.Update(), statusbar.SbRender.Update(), statusbar.SbMapScale.Update(), statusbar.SbGoTo.Update(), model.Model.Update(), statusbar.SbProjection.Update(), statusbar.SbMask.Update(), statusbar.SbTextItem.Update(), model.ModelObject.Update(), statusbar.SbGoToGCP.Update(), model.ModelAction.Update(), model.ModelData.Update(), model.ModelLoop.Update(), frame.VariablePanel.Update(), frame.ItemPanel.Update(), manager.TableListCtrl.Update(), and manager.LayerListCtrl.Update().
def colorrules.VectorColorTable.OnPaneChanged | ( | self, | |
event = None |
|||
) |
Definition at line 1077 of file colorrules.py.
def colorrules.VectorColorTable.OnPreview | ( | self, | |
event = None , |
|||
tmp = True |
|||
) |
Update preview (based on computational region)
Definition at line 1476 of file colorrules.py.
References colorrules.RasterColorTable.colorTable, colorrules.VectorColorTable.colorTable, colorrules.VectorColorTable.OnColumnPreview(), and colorrules.VectorColorTable.OnTablePreview().
Referenced by colorrules.VectorColorTable.LoadRulesFromColumn(), colorrules.ColorTable.LoadTable(), colorrules.ColorTable.OnApply(), and colorrules.ColorTable.ReadColorTable().
def colorrules.VectorColorTable.OnSelectionInput | ( | self, | |
event | |||
) |
Vector map selected.
Definition at line 1143 of file colorrules.py.
References colorrules.VectorColorTable.DeleteTemporaryColumn(), and colorrules.ColorTable.inmap.
Referenced by colorrules.VectorColorTable.CreateAttrTable().
def colorrules.VectorColorTable.OnSourceColumnSelection | ( | self, | |
event | |||
) |
Definition at line 1293 of file colorrules.py.
References colorrules.ColorTable.LoadTable(), colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, and model.WriteModelFile.properties.
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 | |||
) |
Selection in combobox (for storing values) changed.
Definition at line 1472 of file colorrules.py.
References colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, and model.WriteModelFile.properties.
def colorrules.VectorColorTable.SetRangeLabel | ( | self) |
Set labels with info about attribute column range.
Definition at line 1439 of file colorrules.py.
References colorrules.RasterColorTable.colorTable, colorrules.VectorColorTable.colorTable, colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, and model.WriteModelFile.properties.
Referenced by colorrules.VectorColorTable.LoadRulesFromColumn(), and colorrules.ColorTable.ReadColorTable().
def colorrules.VectorColorTable.UpdateColorColumn | ( | self, | |
tmp | |||
) |
Creates color table.
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, 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, 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().
def colorrules.VectorColorTable.UpdateDialog | ( | self) |
Update dialog after map selection.
Definition at line 1161 of file colorrules.py.
References colorrules.RulesPanel.attributeType, colorrules.RasterColorTable.attributeType, colorrules.VectorColorTable.attributeType, colorrules.VectorColorTable.CheckMapset(), colorrules.VectorColorTable.DisableClearAll(), colorrules.ColorTable.inmap, and colorrules.VectorColorTable.version7.
def colorrules.VectorColorTable.UseAttrColumn | ( | self, | |
useAttrColumn | |||
) |
Find layers and apply the changes in d.vect command.
Definition at line 1542 of file colorrules.py.
References colorrules.RulesPanel.attributeType, colorrules.RasterColorTable.attributeType, colorrules.VectorColorTable.attributeType, colorrules.ColorTable.inmap, colorrules.RulesPanel.properties, model.Model.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, and dialogs.update().
Referenced by colorrules.VectorColorTable.OnApply().
colorrules.VectorColorTable.addColumn |
Definition at line 978 of file colorrules.py.
colorrules.VectorColorTable.attributeType |
Definition at line 898 of file colorrules.py.
Referenced by colorrules.VectorColorTable.LoadRulesFromColumn(), colorrules.VectorColorTable.OnAddColumn(), colorrules.VectorColorTable.OnColumnPreview(), colorrules.VectorColorTable.OnLayerSelection(), colorrules.VectorColorTable.UpdateColorColumn(), colorrules.VectorColorTable.UpdateDialog(), and colorrules.VectorColorTable.UseAttrColumn().
colorrules.VectorColorTable.colorColumnSizer |
Definition at line 1016 of file colorrules.py.
colorrules.VectorColorTable.colorTable |
Definition at line 901 of file colorrules.py.
Referenced by colorrules.VectorColorTable.CreateColorTable(), colorrules.VectorColorTable.LoadTable(), colorrules.VectorColorTable.OnApply(), colorrules.VectorColorTable.OnCheckColumn(), colorrules.VectorColorTable.OnPreview(), and colorrules.VectorColorTable.SetRangeLabel().
colorrules.VectorColorTable.columnsProp |
Definition at line 922 of file colorrules.py.
Referenced by colorrules.VectorColorTable.OnAddColumn(), and colorrules.VectorColorTable.OnLayerSelection().
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.inmap |
Definition at line 1149 of file colorrules.py.
Referenced by vclean.VectorCleaningFrame.GetCmdStrings(), vclean.VectorCleaningFrame.OnCleaningRun(), and vclean.VectorCleaningFrame.OnCopy().
colorrules.VectorColorTable.layerSelect |
Definition at line 974 of file colorrules.py.
Referenced by colorrules.VectorColorTable.CreateAttrTable().
colorrules.VectorColorTable.mapType |
Definition at line 897 of file colorrules.py.
Referenced by dialogs.MapFramePanel.OnElementType(), and dialogs.MapFramePanel.update().
colorrules.VectorColorTable.properties |
Definition at line 904 of file colorrules.py.
Referenced by colorrules.VectorColorTable.AddTemporaryColumn(), colorrules.ColorTable.CreateColorTable(), colorrules.VectorColorTable.DeleteTemporaryColumn(), base.BasePlotFrame.DrawPlot(), base.BasePlotFrame.InitRasterOpts(), colorrules.VectorColorTable.LoadRulesFromColumn(), colorrules.ColorTable.LoadTable(), colorrules.VectorColorTable.OnAddColumn(), colorrules.VectorColorTable.OnApply(), colorrules.VectorColorTable.OnCheckColumn(), colorrules.VectorColorTable.OnColumnPreview(), colorrules.VectorColorTable.OnFromColSelection(), colorrules.VectorColorTable.OnLayerSelection(), base.BasePlotFrame.OnPlotText(), colorrules.VectorColorTable.OnSourceColumnSelection(), colorrules.VectorColorTable.OnToColSelection(), colorrules.ColorTable.ReadColorTable(), base.BasePlotFrame.SetGraphStyle(), colorrules.VectorColorTable.SetRangeLabel(), colorrules.VectorColorTable.UpdateColorColumn(), dialogs.TextDialog.UpdateSettings(), dialogs.OptDialog.UpdateSettings(), and colorrules.VectorColorTable.UseAttrColumn().
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 |
Definition at line 902 of file colorrules.py.
Referenced by colorrules.VectorColorTable.CreateColorTable(), and colorrules.VectorColorTable.LoadRulesFromColumn().
colorrules.VectorColorTable.useColumn |
Definition at line 964 of file colorrules.py.
colorrules.VectorColorTable.version7 |
Definition at line 900 of file colorrules.py.
Referenced by colorrules.VectorColorTable.AddTemporaryColumn(), colorrules.VectorColorTable.DeleteTemporaryColumn(), colorrules.VectorColorTable.OnAddColumn(), and colorrules.VectorColorTable.UpdateDialog().