GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Action class (GRASS module) More...
Public Member Functions | |
def | __init__ |
def | SetId |
Set id. More... | |
def | SetProperties |
Record properties dialog. More... | |
def | GetPropDialog |
Get properties dialog. More... | |
def | GetLog |
Get logging info. More... | |
def | GetName |
Get name. More... | |
def | GetParams |
Get dictionary of parameters. More... | |
def | GetTask |
Get grassTask instance. More... | |
def | SetParams |
Set dictionary of parameters. More... | |
def | MergeParams |
Merge dictionary of parameters. More... | |
def | SetValid |
Set validity for action. More... | |
def | IsValid |
Check validity (all required parameters set) More... | |
def | IsParameterized |
Check if action is parameterized. More... | |
def | FindData |
Find data item by name. More... | |
def | Update |
Update action. More... | |
def | OnDraw |
Draw action in canvas. More... | |
Public Member Functions inherited from model.ModelObject | |
def | __init__ |
def | __del__ |
def | GetId |
Get id. More... | |
def | AddRelation |
Record new relation. More... | |
def | GetRelations |
Get list of relations. More... | |
def | IsEnabled |
Get True if action is enabled, otherwise False. More... | |
def | Enable |
Enable/disable action. More... | |
def | Update |
def | SetBlock |
Add object to the block (loop/condition) More... | |
def | UnSetBlock |
Remove object from the block (loop/consition) More... | |
def | GetBlock |
Get list of related ModelObject(s) which defines block (loop/condition) More... | |
def | GetBlockId |
Get list of related ids which defines block. More... | |
Data Fields | |
parent | |
task | |
propWin | |
data | |
isValid | |
isParameterized | |
id | |
IsParameterized | |
Data Fields inherited from model.ModelObject | |
id | |
rels | |
isEnabled | |
inBlock | |
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.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().
model.ModelAction.data |
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().
model.ModelAction.id |
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().
model.ModelAction.isParameterized |
Definition at line 873 of file model.py.
Referenced by model.ModelAction.IsParameterized(), and model.ModelAction.SetValid().
model.ModelAction.IsParameterized |
Definition at line 1033 of file model.py.
Referenced by model.ModelAction.IsParameterized().
model.ModelAction.isValid |
Definition at line 872 of file model.py.
Referenced by model.ModelAction.IsValid(), and model.ModelAction.SetValid().
model.ModelAction.parent |
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(), mapwindow.GLWindow.OnLeftUp(), mapwindow.BufferedWindow.OnLeftUp(), frame.PsMapBufferedWindow.OnLeftUp(), dialogs.DecorationDialog.OnOptions(), goutput.GMConsole.OnOutputSave(), 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().
model.ModelAction.propWin |
Definition at line 868 of file model.py.
Referenced by model.ModelAction.GetPropDialog(), model.ModelData.GetPropDialog(), model.ModelData.SetPropDialog(), and model.ModelAction.SetProperties().
model.ModelAction.task |
Definition at line 850 of file model.py.
Referenced by python.task.processTask.get_task(), model.ModelAction.GetTask(), and forms.CmdPanel.OnUpdateSelection().