GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
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 | OnSetTable |
Load pre-defined color table. 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... | |
def | SetMap |
Set map name and update dialog. More... | |
Data Fields | |
parent | |
layerTree | |
panel | |
Map | |
inmap | |
layer | |
mapType | |
selectionInput | |
loadRules | |
saveRules | |
btnSet | |
preview | |
btnHelp | |
btnCancel | |
btnApply | |
btnOK | |
btnDefault | |
cr_label | |
rulesPanel | |
btnPreview | |
width | |
height | |
Definition at line 312 of file colorrules.py.
def colorrules.ColorTable.__init__ | ( | self, | |
parent, | |||
title, | |||
layerTree = None , |
|||
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 697 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 741 of file colorrules.py.
References colorrules.ColorTable.CreateColorTable(), sqlbuilder.SQLFrame.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 533 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 667 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 545 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 567 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 540 of file colorrules.py.
References dialogs.ModelDataDialog.OnCancel(), preferences.PreferencesBaseDialog.OnCancel(), dialogs.ModelSearchDialog.OnCancel(), dialogs.RegionDef.OnCancel(), colorrules.ColorTable.OnCancel(), dialogs.DecorationDialog.OnCancel(), and forms.TaskFrame.OnCancel().
def colorrules.ColorTable.OnLoadDefaultTable | ( | self, | |
event | |||
) |
Load internal color table.
Definition at line 663 of file colorrules.py.
References colorrules.ColorTable.LoadTable().
def colorrules.ColorTable.OnLoadRulesFile | ( | self, | |
event | |||
) |
Load color table from file.
Definition at line 610 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 562 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.ModelSearchDialog.OnCancel(), dialogs.RegionDef.OnCancel(), colorrules.ColorTable.OnCancel(), dialogs.DecorationDialog.OnCancel(), and forms.TaskFrame.OnCancel().
def colorrules.ColorTable.OnSaveRulesFile | ( | self, | |
event | |||
) |
Save color table to file.
Definition at line 590 of file colorrules.py.
def colorrules.ColorTable.OnSetTable | ( | self, | |
event | |||
) |
Load pre-defined color table.
Definition at line 573 of file colorrules.py.
References colorrules.ColorTable.inmap, colorrules.ColorTable.ReadColorTable(), and gcmd.RunCommand().
def colorrules.ColorTable.ReadColorTable | ( | self, | |
ctable | |||
) |
Read color table.
table | color table in format coming from r.colors.out |
Definition at line 622 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(), colorrules.ColorTable.OnLoadRulesFile(), and colorrules.ColorTable.OnSetTable().
def colorrules.ColorTable.RunHelp | ( | self, | |
cmd | |||
) |
def colorrules.ColorTable.SetMap | ( | self, | |
name | |||
) |
Set map name and update dialog.
Definition at line 762 of file colorrules.py.
colorrules.ColorTable.btnApply |
Definition at line 457 of file colorrules.py.
colorrules.ColorTable.btnCancel |
Definition at line 456 of file colorrules.py.
colorrules.ColorTable.btnDefault |
Definition at line 459 of file colorrules.py.
colorrules.ColorTable.btnHelp |
Definition at line 455 of file colorrules.py.
colorrules.ColorTable.btnOK |
Definition at line 458 of file colorrules.py.
colorrules.ColorTable.btnPreview |
Definition at line 517 of file colorrules.py.
colorrules.ColorTable.btnSet |
Definition at line 417 of file colorrules.py.
colorrules.ColorTable.cr_label |
Definition at line 491 of file colorrules.py.
colorrules.ColorTable.height |
Definition at line 537 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 332 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.ColorTable.OnSetTable(), colorrules.VectorColorTable.OnTablePreview(), colorrules.VectorColorTable.UpdateDialog(), and colorrules.VectorColorTable.UseAttrColumn().
colorrules.ColorTable.layer |
Definition at line 335 of file colorrules.py.
Referenced by colorrules.ColorTable.DoPreview(), and histogram.HistogramFrame.SetHistLayer().
colorrules.ColorTable.layerTree |
Definition at line 320 of file colorrules.py.
Referenced by toolbars.VDigitToolbar.OnSelectMap().
colorrules.ColorTable.loadRules |
Definition at line 397 of file colorrules.py.
colorrules.ColorTable.Map |
Definition at line 329 of file colorrules.py.
Referenced by frame.MapFrame.AddNviz(), frame.MapFrame.AddToolbar(), and frame.MapFrame.GetMapWindow().
colorrules.ColorTable.mapType |
Definition at line 374 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 326 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 449 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 497 of file colorrules.py.
colorrules.ColorTable.saveRules |
Definition at line 405 of file colorrules.py.
colorrules.ColorTable.selectionInput |
Definition at line 382 of file colorrules.py.
colorrules.ColorTable.width |
Definition at line 536 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().