GRASS Programmer's Manual
6.4.3(2013)-r
|
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 | 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... | |
Data Fields | |
parent | |
panel | |
Map | |
inmap | |
layer | |
mapType | |
selectionInput | |
loadRules | |
saveRules | |
preview | |
btnHelp | |
btnCancel | |
btnApply | |
btnOK | |
cr_label | |
rulesPanel | |
btnPreview | |
width | |
height | |
Definition at line 312 of file colorrules.py.
def colorrules.ColorTable.__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.
Definition at line 315 of file colorrules.py.
def colorrules.ColorTable.CreateColorTable | ( | self, | |
tmp = False |
|||
) |
Creates color table.
Definition at line 662 of file colorrules.py.
References colorrules.ColorTable._IsNumber(), utils.CmdToTuple(), utils.GetTempfile(), colorrules.ColorTable.inmap, colorrules.RulesPanel.mapType, colorrules.ColorTable.mapType, dialogs.MapLayersDialog.mapType, colorrules.RulesPanel.properties, model.Model.properties, base.BasePlotFrame.properties, dialogs.TextDialog.properties, dialogs.OptDialog.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, and gcmd.RunCommand().
Referenced by colorrules.ColorTable.DoPreview(), and colorrules.ColorTable.OnApply().
def colorrules.ColorTable.DoPreview | ( | self, | |
ltype, | |||
cmdlist | |||
) |
Update preview (based on computational region)
Definition at line 706 of file colorrules.py.
References colorrules.ColorTable.CreateColorTable(), sqlbuilder.SQLFrame.layer, overlays.OverlayController.layer, manager.VirtualAttributeList.layer, colorrules.ColorTable.layer, forms.TaskFrame.layer, and manager.AttributeManager.layer.
def colorrules.ColorTable.InitDisplay | ( | self) |
Initialize preview display, set dimensions and region.
Definition at line 515 of file colorrules.py.
def colorrules.ColorTable.LoadTable | ( | self, | |
mapType = 'raster' |
|||
) |
Load current color table (using r(v).colors.out
)
mapType | map type (raster or vector) |
Definition at line 632 of file colorrules.py.
References utils.CmdToTuple(), colorrules.ColorTable.inmap, frame.PsMapFrame.OnPreview(), colorrules.RasterColorTable.OnPreview(), colorrules.VectorColorTable.OnPreview(), colorrules.RulesPanel.properties, model.Model.properties, base.BasePlotFrame.properties, dialogs.TextDialog.properties, dialogs.OptDialog.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, colorrules.ColorTable.ReadColorTable(), and gcmd.RunCommand().
Referenced by colorrules.VectorColorTable.OnAddColumn(), colorrules.VectorColorTable.OnCheckColumn(), colorrules.VectorColorTable.OnFromColSelection(), colorrules.VectorColorTable.OnLayerSelection(), colorrules.ColorTable.OnLoadDefaultTable(), and colorrules.VectorColorTable.OnSourceColumnSelection().
def colorrules.ColorTable.OnApply | ( | self, | |
event | |||
) |
Apply selected color table.
Definition at line 527 of file colorrules.py.
References colorrules.ColorTable.CreateColorTable(), frame.PsMapFrame.OnPreview(), colorrules.RasterColorTable.OnPreview(), and colorrules.VectorColorTable.OnPreview().
Referenced by dialogs.VDigitCategoryDialog.OnOK(), dialogs.TextDialog.OnOk(), colorrules.ColorTable.OnOK(), dialogs.OptDialog.OnOk(), dialogs.TextDialog.OnSave(), and dialogs.OptDialog.OnSave().
def colorrules.ColorTable.OnCancel | ( | self, | |
event | |||
) |
Do not apply any changes, remove associated rendered images and close the dialog.
Definition at line 549 of file colorrules.py.
Referenced by colorrules.ColorTable.OnCloseWindow(), dialogs.VDigitCategoryDialog.OnOK(), colorrules.ColorTable.OnOK(), and dialogs.DxfImportDialog.OnRun().
def colorrules.ColorTable.OnCloseWindow | ( | self, | |
event | |||
) |
Window closed.
Definition at line 522 of file colorrules.py.
References dialogs.ModelDataDialog.OnCancel(), preferences.PreferencesBaseDialog.OnCancel(), dialogs.DisplayAttributesDialog.OnCancel(), dialogs.RegionDef.OnCancel(), colorrules.ColorTable.OnCancel(), and forms.TaskFrame.OnCancel().
def colorrules.ColorTable.OnLoadDefaultTable | ( | self, | |
event | |||
) |
Load internal color table.
Definition at line 628 of file colorrules.py.
References colorrules.ColorTable.LoadTable().
def colorrules.ColorTable.OnLoadRulesFile | ( | self, | |
event | |||
) |
Load color table from file.
Definition at line 575 of file colorrules.py.
References colorrules.ColorTable.ReadColorTable().
def colorrules.ColorTable.OnOK | ( | self, | |
event | |||
) |
Apply selected color table and close the dialog.
Definition at line 544 of file colorrules.py.
References preferences.PreferencesBaseDialog.OnApply(), sqlbuilder.SQLFrame.OnApply(), preferences.PreferencesDialog.OnApply(), colorrules.ColorTable.OnApply(), forms.TaskFrame.OnApply(), dialogs.GroupDialog.OnApply(), dialogs.SetOpacityDialog.OnApply(), manager.GrSettingsDialog.OnApply(), dialogs.ModelDataDialog.OnCancel(), preferences.PreferencesBaseDialog.OnCancel(), dialogs.DisplayAttributesDialog.OnCancel(), dialogs.RegionDef.OnCancel(), colorrules.ColorTable.OnCancel(), and forms.TaskFrame.OnCancel().
def colorrules.ColorTable.OnSaveRulesFile | ( | self, | |
event | |||
) |
Save color table to file.
Definition at line 555 of file colorrules.py.
def colorrules.ColorTable.ReadColorTable | ( | self, | |
ctable | |||
) |
Read color table.
table | color table in format coming from r.colors.out |
Definition at line 587 of file colorrules.py.
References colorrules.RulesPanel.mapType, colorrules.ColorTable.mapType, dialogs.MapLayersDialog.mapType, frame.PsMapFrame.OnPreview(), colorrules.RasterColorTable.OnPreview(), colorrules.VectorColorTable.OnPreview(), colorrules.RulesPanel.properties, model.Model.properties, base.BasePlotFrame.properties, dialogs.TextDialog.properties, dialogs.OptDialog.properties, colorrules.RasterColorTable.properties, colorrules.VectorColorTable.properties, model.ProcessModelFile.properties, model.WriteModelFile.properties, colorrules.VectorColorTable.SetRangeLabel(), and widgets.SetValue().
Referenced by colorrules.ColorTable.LoadTable(), and colorrules.ColorTable.OnLoadRulesFile().
def colorrules.ColorTable.RunHelp | ( | self, | |
cmd | |||
) |
colorrules.ColorTable.btnApply |
Definition at line 444 of file colorrules.py.
colorrules.ColorTable.btnCancel |
Definition at line 443 of file colorrules.py.
colorrules.ColorTable.btnHelp |
Definition at line 442 of file colorrules.py.
colorrules.ColorTable.btnOK |
Definition at line 445 of file colorrules.py.
colorrules.ColorTable.btnPreview |
Definition at line 499 of file colorrules.py.
colorrules.ColorTable.cr_label |
Definition at line 473 of file colorrules.py.
colorrules.ColorTable.height |
Definition at line 519 of file colorrules.py.
Referenced by wxnviz.Texture.Draw(), utils.Rect2D.GetHeight(), wxnviz.Texture.Load(), wxnviz.Texture.Resize(), wxnviz.Nviz.ResizeWindow(), wxnviz.Nviz.SaveToFile(), and wxnviz.Nviz.Start2D().
colorrules.ColorTable.inmap |
Definition at line 330 of file colorrules.py.
Referenced by colorrules.VectorColorTable.AddTemporaryColumn(), colorrules.VectorColorTable.CheckMapset(), colorrules.ColorTable.CreateColorTable(), colorrules.VectorColorTable.DeleteTemporaryColumn(), vclean.VectorCleaningFrame.GetCmdStrings(), colorrules.VectorColorTable.LoadRulesFromColumn(), colorrules.ColorTable.LoadTable(), colorrules.VectorColorTable.NoConnection(), colorrules.VectorColorTable.OnAddColumn(), vclean.VectorCleaningFrame.OnCleaningRun(), colorrules.VectorColorTable.OnColumnPreview(), vclean.VectorCleaningFrame.OnCopy(), colorrules.VectorColorTable.OnLayerSelection(), colorrules.RasterColorTable.OnPreview(), colorrules.VectorColorTable.OnSelectionInput(), colorrules.VectorColorTable.OnTablePreview(), colorrules.VectorColorTable.UpdateDialog(), and colorrules.VectorColorTable.UseAttrColumn().
colorrules.ColorTable.layer |
Definition at line 332 of file colorrules.py.
Referenced by colorrules.ColorTable.DoPreview(), and histogram.HistogramFrame.SetHistLayer().
colorrules.ColorTable.loadRules |
Definition at line 391 of file colorrules.py.
colorrules.ColorTable.Map |
Definition at line 327 of file colorrules.py.
Referenced by frame.MapFrame.AddNviz(), frame.MapFrame.AddToolbar(), and frame.MapFrame.GetMapWindow().
colorrules.ColorTable.mapType |
Definition at line 368 of file colorrules.py.
Referenced by colorrules.ColorTable.CreateColorTable(), dialogs.MapFramePanel.OnElementType(), colorrules.ColorTable.ReadColorTable(), and dialogs.MapFramePanel.update().
colorrules.ColorTable.panel |
Definition at line 324 of file colorrules.py.
colorrules.ColorTable.parent |
Definition at line 319 of file colorrules.py.
Referenced by wxdigit.VDigitError.Database(), wxdigit.VDigitError.DbExecute(), wxdigit.VDigitError.DbLink(), wxdigit.VDigitError.DeadLine(), wxdigit.VDigitError.Driver(), wxdigit.VDigitError.FeatureType(), wxdigit.VDigitError.NoMap(), frame.PsMapBufferedWindow.OnLeftUp(), wxdigit.VDigitError.ReadLine(), colorrules.VectorColorTable.UpdateColorColumn(), and wxdigit.VDigitError.WriteLine().
colorrules.ColorTable.preview |
Definition at line 436 of file colorrules.py.
Referenced by frame.PsMapBufferedWindow.Clear(), frame.PsMapBufferedWindow.OnMouseMoving(), frame.PsMapBufferedWindow.OnPaint(), frame.PsMapBufferedWindow.Zoom(), and frame.PsMapBufferedWindow.ZoomAll().
colorrules.ColorTable.rulesPanel |
Definition at line 479 of file colorrules.py.
colorrules.ColorTable.saveRules |
Definition at line 400 of file colorrules.py.
colorrules.ColorTable.selectionInput |
Definition at line 376 of file colorrules.py.
colorrules.ColorTable.width |
Definition at line 518 of file colorrules.py.
Referenced by wxnviz.Texture.Draw(), wxnviz.Nviz.GetRotationParameters(), utils.Rect2D.GetWidth(), wxnviz.Texture.Load(), wxnviz.Texture.Resize(), wxnviz.Nviz.ResizeWindow(), wxnviz.Nviz.SaveToFile(), and wxnviz.Nviz.Start2D().