GRASS Programmer's Manual
6.4.2(2012)
|
Public Member Functions | |
def | __init__ |
Dialog for interactively entering rules for map management commands. | |
def | OnAddRules |
Add rules button pressed. | |
def | AddRules |
Add rules. | |
def | InitDisplay |
Initialize preview display, set dimensions and region. | |
def | OnErase |
Erase the histogram display. | |
def | OnCloseWindow |
Window closed Also remove associated rendered images. | |
def | OnSelectionInput |
Raster/vector map selected. | |
def | OnLayerSelection |
def | OnColumnSelection |
def | OnRGBColSelection |
def | OnRuleEnable |
Rule enabled/disabled. | |
def | OnRuleValue |
Rule value changed. | |
def | OnRuleColor |
Rule color changed. | |
def | SQLConvert |
def | OnLoadTable |
Load current color table (using r.colors.out ) | |
def | OnSaveTable |
Save color table to file. | |
def | OnApply |
Apply selected color table. | |
def | OnOK |
Apply selected color table and close the dialog. | |
def | OnCancel |
Do not apply any changes and close the dialog. | |
def | OnPreview |
Update preview (based on computational region) | |
def | OnHelp |
Show GRASS manual page. | |
def | CreateColorTable |
Creates color table. |
Definition at line 39 of file colorrules.py.
def gui_modules.colorrules.ColorTable.__init__ | ( | self, | |
parent, | |||
raster, | |||
id = wx.ID_ANY , |
|||
title = _("Set color table") , |
|||
style = wx.DEFAULT_FRAME_STYLE | wx.RESIZE_BORDER , |
|||
kwargs | |||
) |
Dialog for interactively entering rules for map management commands.
raster | True to raster otherwise vector |
Definition at line 42 of file colorrules.py.
def gui_modules.colorrules.ColorTable.AddRules | ( | self, | |
nrules | |||
) |
Add rules.
Definition at line 307 of file colorrules.py.
References gui_modules.colorrules.ColorTable.cr_panel, gui_modules.colorrules.ColorTable.OnRuleColor(), gui_modules.colorrules.ColorTable.OnRuleEnable(), gui_modules.colorrules.ColorTable.OnRuleValue(), and gui_modules.colorrules.ColorTable.ruleslines.
Referenced by gui_modules.colorrules.ColorTable.OnAddRules(), and gui_modules.colorrules.ColorTable.OnLoadTable().
def gui_modules.colorrules.ColorTable.CreateColorTable | ( | self, | |
force = False |
|||
) |
Creates color table.
Definition at line 653 of file colorrules.py.
References gui_modules.colorrules.ColorTable._IsNumber(), gui_modules.colorrules.ColorTable.inmap, gui_modules.colorrules.ColorTable.properties, and gui_modules.colorrules.ColorTable.raster.
Referenced by gui_modules.colorrules.ColorTable.OnApply(), and gui_modules.colorrules.ColorTable.OnPreview().
def gui_modules.colorrules.ColorTable.InitDisplay | ( | self | ) |
Initialize preview display, set dimensions and region.
Definition at line 337 of file colorrules.py.
def gui_modules.colorrules.ColorTable.OnAddRules | ( | self, | |
event | |||
) |
Add rules button pressed.
Definition at line 302 of file colorrules.py.
References gui_modules.colorrules.ColorTable.AddRules().
def gui_modules.colorrules.ColorTable.OnApply | ( | self, | |
event | |||
) |
Apply selected color table.
Definition at line 553 of file colorrules.py.
References gui_modules.colorrules.ColorTable.CreateColorTable().
Referenced by gui_modules.colorrules.ColorTable.OnOK(), gui_modules.menuform.mainFrame.OnOK(), gui_modules.vdigit.VDigitCategoryDialog.OnOK(), gui_modules.nviz_preferences.NvizPreferencesDialog.OnSave(), and gui_modules.nviz_tools.NvizPreferencesDialog.OnSave().
def gui_modules.colorrules.ColorTable.OnCancel | ( | self, | |
event | |||
) |
Do not apply any changes and close the dialog.
Definition at line 570 of file colorrules.py.
Referenced by gui_modules.menuform.mainFrame.OnKeyUp(), gui_modules.menuform.mainFrame.OnOK(), gui_modules.gdialogs.DecorationDialog.OnOK(), gui_modules.vdigit.VDigitCategoryDialog.OnOK(), gui_modules.gdialogs.DxfImportDialog.OnRun(), and gui_modules.dbm_dialogs.DisplayAttributesDialog.OnSubmit().
def gui_modules.colorrules.ColorTable.OnCloseWindow | ( | self, | |
event | |||
) |
Window closed Also remove associated rendered images.
Definition at line 349 of file colorrules.py.
Referenced by gui_modules.ghelp.AboutWindow.__init__().
def gui_modules.colorrules.ColorTable.OnColumnSelection | ( | self, | |
event | |||
) |
Definition at line 425 of file colorrules.py.
References gui_modules.colorrules.ColorTable.properties.
def gui_modules.colorrules.ColorTable.OnErase | ( | self, | |
event | |||
) |
Erase the histogram display.
Definition at line 344 of file colorrules.py.
def gui_modules.colorrules.ColorTable.OnHelp | ( | self, | |
event | |||
) |
Show GRASS manual page.
Definition at line 634 of file colorrules.py.
References gui_modules.colorrules.ColorTable.raster.
Referenced by gui_modules.menuform.mainFrame.OnKeyUp().
def gui_modules.colorrules.ColorTable.OnLayerSelection | ( | self, | |
event | |||
) |
Definition at line 417 of file colorrules.py.
def gui_modules.colorrules.ColorTable.OnLoadTable | ( | self, | |
event | |||
) |
Load current color table (using r.colors.out
)
Definition at line 500 of file colorrules.py.
References gui_modules.colorrules.ColorTable.AddRules(), gui_modules.colorrules.ColorTable.inmap, gui_modules.render.map, gui_modules.colorrules.ColorTable.OnPreview(), and gui_modules.colorrules.ColorTable.ruleslines.
Referenced by gui_modules.colorrules.ColorTable.OnSelectionInput().
def gui_modules.colorrules.ColorTable.OnOK | ( | self, | |
event | |||
) |
Apply selected color table and close the dialog.
Definition at line 565 of file colorrules.py.
References gui_modules.colorrules.ColorTable.OnApply().
def gui_modules.colorrules.ColorTable.OnPreview | ( | self, | |
event = None , |
|||
tmp = True |
|||
) |
Update preview (based on computational region)
Definition at line 574 of file colorrules.py.
References gui_modules.colorrules.ColorTable.CreateColorTable(), gui_modules.colorrules.ColorTable.inmap, gui_modules.colorrules.ColorTable.layer, gui_modules.colorrules.ColorTable.properties, and gui_modules.colorrules.ColorTable.raster.
Referenced by gui_modules.colorrules.ColorTable.OnLoadTable().
def gui_modules.colorrules.ColorTable.OnRGBColSelection | ( | self, | |
event | |||
) |
Definition at line 428 of file colorrules.py.
References gui_modules.colorrules.ColorTable.properties.
def gui_modules.colorrules.ColorTable.OnRuleColor | ( | self, | |
event | |||
) |
Rule color changed.
Definition at line 475 of file colorrules.py.
References gui_modules.colorrules.ColorTable.ruleslines.
Referenced by gui_modules.colorrules.ColorTable.AddRules().
def gui_modules.colorrules.ColorTable.OnRuleEnable | ( | self, | |
event | |||
) |
Rule enabled/disabled.
Definition at line 431 of file colorrules.py.
References gui_modules.colorrules.ColorTable.ruleslines.
Referenced by gui_modules.colorrules.ColorTable.AddRules().
def gui_modules.colorrules.ColorTable.OnRuleValue | ( | self, | |
event | |||
) |
Rule value changed.
Definition at line 448 of file colorrules.py.
References gui_modules.colorrules.ColorTable.properties, gui_modules.colorrules.ColorTable.raster, gui_modules.colorrules.ColorTable.ruleslines, and gui_modules.colorrules.ColorTable.SQLConvert().
Referenced by gui_modules.colorrules.ColorTable.AddRules().
def gui_modules.colorrules.ColorTable.OnSaveTable | ( | self, | |
event | |||
) |
Save color table to file.
Definition at line 531 of file colorrules.py.
def gui_modules.colorrules.ColorTable.OnSelectionInput | ( | self, | |
event | |||
) |
Raster/vector map selected.
Definition at line 356 of file colorrules.py.
References gui_modules.colorrules.ColorTable.inmap, gui_modules.colorrules.ColorTable.OnLoadTable(), gui_modules.colorrules.ColorTable.properties, gui_modules.colorrules.ColorTable.raster, gui_modules.dbm.VirtualAttributeList.Update(), gui_modules.menuform.UpdateQThread.Update(), gui_modules.profile.ProfileFrame.Update(), gui_modules.gmodeler.Model.Update(), gui_modules.gmodeler.ModelObject.Update(), gui_modules.gmodeler.ModelAction.Update(), gui_modules.gmodeler.ModelData.Update(), gui_modules.dbm.TableListCtrl.Update(), gui_modules.dbm.LayerListCtrl.Update(), gui_modules.gmodeler.VariablePanel.Update(), gui_modules.gmodeler.ModelLoop.Update(), and gui_modules.gmodeler.ItemPanel.Update().
def gui_modules.colorrules.ColorTable.SQLConvert | ( | self, | |
vals | |||
) |
Definition at line 487 of file colorrules.py.
References gui_modules.colorrules.ColorTable.properties.
Referenced by gui_modules.colorrules.ColorTable.OnRuleValue().
gui_modules.colorrules.ColorTable.btnAdd |
Definition at line 160 of file colorrules.py.
gui_modules.colorrules.ColorTable.btnApply |
Definition at line 151 of file colorrules.py.
gui_modules.colorrules.ColorTable.btnCancel |
Definition at line 150 of file colorrules.py.
gui_modules.colorrules.ColorTable.btnOK |
Definition at line 152 of file colorrules.py.
gui_modules.colorrules.ColorTable.btnPreview |
Definition at line 157 of file colorrules.py.
gui_modules.colorrules.ColorTable.btnSave |
Definition at line 120 of file colorrules.py.
gui_modules.colorrules.ColorTable.cb_vc_label |
Definition at line 126 of file colorrules.py.
gui_modules.colorrules.ColorTable.cb_vcol |
Definition at line 131 of file colorrules.py.
gui_modules.colorrules.ColorTable.cb_vl_label |
Definition at line 124 of file colorrules.py.
gui_modules.colorrules.ColorTable.cb_vlayer |
Definition at line 130 of file colorrules.py.
gui_modules.colorrules.ColorTable.cb_vrgb |
Definition at line 132 of file colorrules.py.
gui_modules.colorrules.ColorTable.cb_vrgb_label |
Definition at line 128 of file colorrules.py.
gui_modules.colorrules.ColorTable.cr_label |
Definition at line 135 of file colorrules.py.
gui_modules.colorrules.ColorTable.cr_panel |
Definition at line 137 of file colorrules.py.
Referenced by gui_modules.colorrules.ColorTable.AddRules().
gui_modules.colorrules.ColorTable.cr_sizer |
Definition at line 295 of file colorrules.py.
gui_modules.colorrules.ColorTable.height |
Definition at line 341 of file colorrules.py.
Referenced by gui_modules.render.Map.AdjustRegion(), gui_modules.render.Map.AlignExtentFromDisplay(), gui_modules.render.Map.ChangeMapSize(), gui_modules.gmodeler.ModelCondition.GetHeight(), gui_modules.render.Map.Render(), gui_modules.wxnviz.Nviz.ResizeWindow(), and gui_modules.wxnviz.Nviz.SaveToFile().
gui_modules.colorrules.ColorTable.helpbtn |
Definition at line 161 of file colorrules.py.
gui_modules.colorrules.ColorTable.inmap |
Definition at line 56 of file colorrules.py.
Referenced by gui_modules.colorrules.ColorTable.CreateColorTable(), gui_modules.vclean.VectorCleaningFrame.GetCmdStrings(), gui_modules.vclean.VectorCleaningFrame.OnCopy(), gui_modules.colorrules.ColorTable.OnLoadTable(), gui_modules.colorrules.ColorTable.OnPreview(), and gui_modules.colorrules.ColorTable.OnSelectionInput().
gui_modules.colorrules.ColorTable.inputSizer |
Definition at line 106 of file colorrules.py.
gui_modules.colorrules.ColorTable.layer |
Definition at line 90 of file colorrules.py.
Referenced by gui_modules.dbm.VirtualAttributeList.AddDataRow(), gui_modules.dbm.AttributeManager.AddQueryMapLayer(), gui_modules.dbm.AttributeManager.ApplyCommands(), gui_modules.sqlbuilder.SQLFrame.OnAddValue(), gui_modules.menuform.mainFrame.OnApply(), gui_modules.dbm.AttributeManager.OnApplySqlStatement(), gui_modules.dbm.AttributeManager.OnBuilderEvt(), gui_modules.menuform.mainFrame.OnCancel(), gui_modules.dbm.VirtualAttributeList.OnColumnCompute(), gui_modules.dbm.AttributeManager.OnDataItemAdd(), gui_modules.dbm.AttributeManager.OnDataItemDelete(), gui_modules.dbm.AttributeManager.OnDataItemDeleteAll(), gui_modules.dbm.AttributeManager.OnDataItemEdit(), gui_modules.dbm.AttributeManager.OnDataSelectAll(), gui_modules.dbm.AttributeManager.OnDataSelectNone(), gui_modules.dbm.AttributeManager.OnDeleteSelected(), gui_modules.dbm.AttributeManager.OnExtractSelected(), gui_modules.dbm.AttributeManager.OnLayerPageChanged(), gui_modules.dbm.AttributeManager.OnPageChanged(), gui_modules.colorrules.ColorTable.OnPreview(), gui_modules.dbm.AttributeManager.OnTableAddColumnName(), gui_modules.dbm.AttributeManager.OnTableChangeType(), gui_modules.dbm.AttributeManager.OnTableItemChange(), gui_modules.dbm.AttributeManager.OnTableItemDelete(), gui_modules.dbm.AttributeManager.OnTableItemDeleteAll(), gui_modules.dbm.AttributeManager.OnTableReload(), gui_modules.dbm.AttributeManager.OnTableRenameColumnName(), gui_modules.sqlbuilder.SQLFrame.OnUniqueValues(), gui_modules.histogram.HistFrame.SetHistLayer(), gui_modules.dbm.VirtualAttributeList.Update(), and gui_modules.dbm.AttributeManager.ValidateSelectStatement().
gui_modules.colorrules.ColorTable.Map |
Definition at line 87 of file colorrules.py.
Referenced by gui_modules.gcpmapdisp.MapFrame.AddToolbar(), gui_modules.mapdisp.MapFrame.AddToolbar(), gui_modules.layertree.LayerTree.GetMap(), gui_modules.gcpmapdisp.MapFrame.GetRender(), gui_modules.mapdisp.MapFrame.GetRender(), gui_modules.mapdisp_window.BufferedWindow.OnMouseEnter(), gui_modules.gcpmanager.GCP.OnUpdateActive(), gui_modules.gcpmanager.GCP.OnZoomToSource(), and gui_modules.gcpmanager.GCP.OnZoomToTarget().
gui_modules.colorrules.ColorTable.numRules |
Definition at line 141 of file colorrules.py.
gui_modules.colorrules.ColorTable.ovrwrtcheck |
Definition at line 115 of file colorrules.py.
gui_modules.colorrules.ColorTable.parent |
Definition at line 48 of file colorrules.py.
Referenced by gui_modules.gmodeler.ModelLoop.__init__(), gui_modules.wxvdigit.VDigitError.Database(), gui_modules.wxvdigit.VDigitError.DbExecute(), gui_modules.wxvdigit.VDigitError.DbLink(), gui_modules.wxvdigit.VDigitError.DeadLine(), gui_modules.wxvdigit.VDigitError.Driver(), gui_modules.wxvdigit.VDigitError.FeatureType(), gui_modules.wxvdigit.VDigitError.NoMap(), gui_modules.menuform.mainFrame.OnCancel(), gui_modules.dbm.AttributeManager.OnCloseWindow(), gui_modules.dbm.VirtualAttributeList.OnColumnCompute(), gui_modules.dbm.AttributeManager.OnDataItemDeleteAll(), gui_modules.menuform.mainFrame.OnDone(), gui_modules.gmodeler.ModelFrame.OnHelp(), gui_modules.gdialogs.DecorationDialog.OnOptions(), wxgui.GMFrame.OnPsMap(), gui_modules.menuform.mainFrame.OnRun(), gui_modules.toolbars.VDigitToolbar.OnSelectMap(), gui_modules.gselect.GdalSelect.OnSetDsn(), gui_modules.toolbars.VDigitToolbar.OnSettings(), gui_modules.toolbars.NvizToolbar.OnSettings(), gui_modules.toolbars.AbstractToolbar.OnTool(), gui_modules.menuform.cmdPanel.OnUpdateSelection(), gui_modules.toolbars.VDigitToolbar.OnZBulk(), gui_modules.wxvdigit.VDigitError.ReadLine(), gui_modules.goutput.CmdThread.run(), gui_modules.menuform.UpdateQThread.run(), gui_modules.goutput.GMConsole.RunCmd(), gui_modules.toolbars.VDigitToolbar.StopEditing(), gui_modules.mapdisp_window.BufferedWindow.UpdateMap(), and gui_modules.wxvdigit.VDigitError.WriteLine().
gui_modules.colorrules.ColorTable.preview |
Definition at line 146 of file colorrules.py.
Referenced by gui_modules.psmap.PsMapBufferedWindow.Clear(), gui_modules.psmap.PsMapBufferedWindow.OnPaint(), gui_modules.psmap.PsMapBufferedWindow.Zoom(), and gui_modules.psmap.PsMapBufferedWindow.ZoomAll().
gui_modules.colorrules.ColorTable.properties |
Definition at line 60 of file colorrules.py.
Referenced by gui_modules.colorrules.ColorTable.CreateColorTable(), gui_modules.profile.ProfileFrame.DrawPlot(), gui_modules.gmodeler.Model.GetProperties(), gui_modules.gmodeler.Model.LoadModel(), gui_modules.colorrules.ColorTable.OnColumnSelection(), gui_modules.colorrules.ColorTable.OnPreview(), gui_modules.profile.ProfileFrame.OnPText(), gui_modules.colorrules.ColorTable.OnRGBColSelection(), gui_modules.colorrules.ColorTable.OnRuleValue(), gui_modules.colorrules.ColorTable.OnSelectionInput(), gui_modules.profile.ProfileFrame.SetGraphStyle(), gui_modules.colorrules.ColorTable.SQLConvert(), gui_modules.profile.TextDialog.UpdateSettings(), and gui_modules.profile.OptDialog.UpdateSettings().
gui_modules.colorrules.ColorTable.raster |
Definition at line 49 of file colorrules.py.
Referenced by gui_modules.colorrules.ColorTable.CreateColorTable(), gui_modules.profile.ProfileFrame.OnCreateProfile(), gui_modules.colorrules.ColorTable.OnHelp(), gui_modules.colorrules.ColorTable.OnPreview(), gui_modules.colorrules.ColorTable.OnRuleValue(), gui_modules.colorrules.ColorTable.OnSelectionInput(), gui_modules.profile.ProfileFrame.OnSelectRaster(), and gui_modules.profile.ProfileFrame.SetRaster().
gui_modules.colorrules.ColorTable.ruleslines |
Definition at line 84 of file colorrules.py.
Referenced by gui_modules.colorrules.ColorTable.AddRules(), gui_modules.colorrules.ColorTable.OnLoadTable(), gui_modules.colorrules.ColorTable.OnRuleColor(), gui_modules.colorrules.ColorTable.OnRuleEnable(), and gui_modules.colorrules.ColorTable.OnRuleValue().
gui_modules.colorrules.ColorTable.selectionInput |
Definition at line 111 of file colorrules.py.
gui_modules.colorrules.ColorTable.vlayer |
Definition at line 419 of file colorrules.py.
gui_modules.colorrules.ColorTable.vtable |
Definition at line 420 of file colorrules.py.
gui_modules.colorrules.ColorTable.width |
Definition at line 340 of file colorrules.py.
Referenced by gui_modules.render.Map.AdjustRegion(), gui_modules.render.Map.AlignExtentFromDisplay(), gui_modules.render.Map.ChangeMapSize(), gui_modules.gmodeler.ModelCondition.GetWidth(), gui_modules.render.Map.Render(), gui_modules.wxnviz.Nviz.ResizeWindow(), and gui_modules.wxnviz.Nviz.SaveToFile().