|
GRASS Programmer's Manual
6.5.svn(2012)-r51648
|
Action class (GRASS module) More...


Public Member Functions | |
| def | __init__ |
| def | SetId |
| Set id. | |
| def | SetProperties |
| Record properties dialog. | |
| def | GetPropDialog |
| Get properties dialog. | |
| def | GetLog |
| Get logging info. | |
| def | GetName |
| Get name. | |
| def | GetParams |
| Get dictionary of parameters. | |
| def | GetTask |
| Get grassTask instance. | |
| def | SetParams |
| Set dictionary of parameters. | |
| def | MergeParams |
| Merge dictionary of parameters. | |
| def | SetValid |
| Set validity for action. | |
| def | IsValid |
| Check validity (all required parameters set) | |
| def | IsParameterized |
| Check if action is parameterized. | |
| def | FindData |
| Find data item by name. | |
| def | Update |
| Update action. | |
| def | OnDraw |
| Draw action in canvas. | |
Data Fields | |
| parent | |
| task | |
| propWin | |
| data | |
| isValid | |
| isParameterized | |
| id | |
| IsParameterized | |
| def model.ModelAction.__init__ | ( | self, | |
| parent, | |||
| x, | |||
| y, | |||
id = -1, |
|||
cmd = None, |
|||
task = None, |
|||
width = None, |
|||
height = None |
|||
| ) |
| def model.ModelAction.FindData | ( | self, | |
| name | |||
| ) |
Find data item by name.
Definition at line 1056 of file model.py.
References model.ModelObject.GetRelations().
| def model.ModelAction.GetLog | ( | self, | |
string = True, |
|||
substitute = None |
|||
| ) |
Get logging info.
| string | True to get cmd as a string otherwise a list |
| substitute | dictionary of parameter to substitute or None |
Definition at line 939 of file model.py.
References tools.range.
| def model.ModelAction.GetName | ( | self | ) |
Get name.
Definition at line 988 of file model.py.
Referenced by dialogs.ItemCheckListCtrl.OnCheckItem(), widgets.SingleSymbolPanel.OnDoubleClick(), and widgets.SingleSymbolPanel.OnLeftDown().
| def model.ModelAction.GetParams | ( | self, | |
dcopy = False |
|||
| ) |
| def model.ModelAction.GetPropDialog | ( | self | ) |
Get properties dialog.
Definition at line 935 of file model.py.
References model.ModelAction.propWin.
| def model.ModelAction.GetTask | ( | self | ) |
Get grassTask instance.
Definition at line 1003 of file model.py.
References model.ModelAction.task.
| def model.ModelAction.IsParameterized | ( | self | ) |
Check if action is parameterized.
Definition at line 1052 of file model.py.
References model.ModelAction.isParameterized, and model.ModelAction.IsParameterized.
| def model.ModelAction.IsValid | ( | self | ) |
Check validity (all required parameters set)
Definition at line 1048 of file model.py.
References model.ModelAction.isValid.
| def model.ModelAction.MergeParams | ( | self, | |
| params | |||
| ) |
| def model.ModelAction.OnDraw | ( | self, | |
| dc | |||
| ) |
Draw action in canvas.
Definition at line 1073 of file model.py.
References model.ModelAction._setBrush(), and model.ModelAction._setPen().
| def model.ModelAction.SetId | ( | self, | |
| id | |||
| ) |
| def model.ModelAction.SetParams | ( | self, | |
| params | |||
| ) |
| def model.ModelAction.SetProperties | ( | self, | |
| params, | |||
| propwin | |||
| ) |
Record properties dialog.
Definition at line 929 of file model.py.
References model.ModelAction.propWin.
| def model.ModelAction.SetValid | ( | self, | |
| options | |||
| ) |
Set validity for action.
| options | dictionary with flags and params (gtask) |
Definition at line 1023 of file model.py.
References model.ModelAction.isParameterized, and model.ModelAction.isValid.
| def model.ModelAction.Update | ( | self, | |
running = False |
|||
| ) |
Update action.
Definition at line 1065 of file model.py.
References model.ModelAction._setBrush(), and model.ModelAction._setPen().
Referenced by wizard.DatumPage.OnDText(), colorrules.VectorColorTable.OnLayerSelection(), manager.GroupPage.OnMkGroup(), statusbar.SbManager.OnToggleStatus(), and mapwindow.BufferedWindow.TextBounds().
Definition at line 870 of file model.py.
Referenced by wxnviz.Nviz.__del__(), wxnviz.Nviz.AddConstant(), wxnviz.Nviz.DeleteArrow(), wxnviz.Nviz.DeleteScalebar(), wxnviz.Nviz.Draw(), wxnviz.Nviz.DrawArrow(), wxnviz.Nviz.DrawFringe(), wxnviz.Nviz.DrawLightingModel(), wxnviz.Nviz.DrawScalebar(), wxnviz.Nviz.EraseMap(), wxnviz.Nviz.FlyThrough(), wxnviz.Nviz.GetCPlaneCurrent(), wxnviz.Nviz.GetCPlaneRotation(), wxnviz.Nviz.GetCPlanesCount(), wxnviz.Nviz.GetCPlaneTranslation(), wxnviz.Nviz.GetFocus(), wxnviz.Nviz.GetLongDim(), wxnviz.Nviz.GetXYRange(), wxnviz.Nviz.GetZRange(), wxnviz.Nviz.InitView(), wxnviz.Nviz.LoadSurface(), wxnviz.Nviz.LoadVector(), wxnviz.Nviz.LoadVolume(), tools.PositionWindow.PostDraw(), tools.LightPositionWindow.PostDraw(), forms.UpdateThread.run(), wxnviz.Nviz.SaveToFile(), wxnviz.Nviz.SelectCPlane(), wxnviz.Nviz.SetArrow(), wxnviz.Nviz.SetBgColor(), wxnviz.Nviz.SetCPlaneInteractively(), wxnviz.Nviz.SetCPlaneRotation(), wxnviz.Nviz.SetCPlaneTranslation(), wxnviz.Nviz.SetFenceColor(), wxnviz.Nviz.SetFocus(), wxnviz.Nviz.SetFringe(), wxnviz.Nviz.SetLight(), wxnviz.Nviz.SetScalebar(), wxnviz.Nviz.SetSurfaceAttr(), wxnviz.Nviz.SetViewDefault(), wxnviz.Nviz.SetZExag(), wxnviz.Nviz.UnselectCPlane(), and tools.PositionWindow.UpdatePos().
Reimplemented from model.ModelObject.
Definition at line 921 of file model.py.
Referenced by dialogs.MapFramePanel.getId(), dialogs.RasterPanel.getId(), dialogs.VectorPanel.getId(), wxnviz.Texture.GetId(), dialogs.MapDialog.OnApply(), dialogs.RasterDialog.OnApply(), dialogs.MainVectorDialog.OnApply(), dialogs.RasterPanel.update(), dialogs.VectorPanel.update(), dialogs.MapinfoDialog.update(), dialogs.ScalebarDialog.update(), dialogs.TextDialog.update(), dialogs.ImageDialog.update(), and dialogs.PointDialog.update().
Definition at line 873 of file model.py.
Referenced by model.ModelAction.IsParameterized(), and model.ModelAction.SetValid().
Definition at line 1033 of file model.py.
Referenced by model.ModelAction.IsParameterized().
Definition at line 872 of file model.py.
Referenced by model.ModelAction.IsValid(), and model.ModelAction.SetValid().
Definition at line 849 of file model.py.
Referenced by model.ModelLoop.__init__(), wxdigit.VDigitError.Database(), wxdigit.VDigitError.DbExecute(), wxdigit.VDigitError.DbLink(), wxdigit.VDigitError.DeadLine(), wxdigit.VDigitError.Driver(), wxdigit.VDigitError.FeatureType(), colorrules.RulesPanel.LoadRules(), wxdigit.VDigitError.NoMap(), forms.TaskFrame.OnCancel(), forms.TaskFrame.OnDone(), frame.PsMapBufferedWindow.OnLeftUp(), dialogs.DecorationDialog.OnOptions(), forms.TaskFrame.OnRun(), toolbars.VDigitToolbar.OnSelectMap(), gselect.GdalSelect.OnSetDsn(), toolbars.LMNvizToolbar.OnSettings(), toolbars.VDigitToolbar.OnSettings(), toolbars.BaseToolbar.OnTool(), forms.CmdPanel.OnUpdateSelection(), toolbars.VDigitToolbar.OnZBulk(), wxdigit.VDigitError.ReadLine(), goutput.CmdThread.run(), forms.UpdateQThread.run(), goutput.GMConsole.RunCmd(), toolbars.VDigitToolbar.StopEditing(), colorrules.VectorColorTable.UpdateColorColumn(), mapwindow.BufferedWindow.UpdateMap(), and wxdigit.VDigitError.WriteLine().
Definition at line 868 of file model.py.
Referenced by model.ModelAction.GetPropDialog(), model.ModelData.GetPropDialog(), model.ModelData.SetPropDialog(), and model.ModelAction.SetProperties().
Definition at line 850 of file model.py.
Referenced by python.task.processTask.get_task(), model.ModelAction.GetTask(), and forms.CmdPanel.OnUpdateSelection().