GRASS Programmer's Manual
6.4.2(2012)
|
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 instance to be valid/invalid. | |
def | SetParameterized |
Set action parameterized. | |
def | IsParameterized |
Check if action is parameterized. | |
def | FindData |
Find data item by name. | |
def | Update |
Update action. | |
def | OnDraw |
Draw action in canvas. | |
![]() | |
def | __init__ |
def | __del__ |
def | GetId |
Get id. | |
def | AddRelation |
Record new relation. | |
def | GetRelations |
Get list of relations. | |
def | IsEnabled |
Get True if action is enabled, otherwise False. | |
def | Enable |
Enable/disable action. | |
def | Update |
def | SetBlock |
Add object to the block (loop/condition) | |
def | UnSetBlock |
Remove object from the block (loop/consition) | |
def | GetBlock |
Get list of related ModelObject(s) which defines block (loop/condition) | |
def | GetBlockId |
Get list of related ids which defines block. |
Data Fields | |
parent | |
task | |
propWin | |
data | |
isValid | |
isParameterized | |
id | |
![]() | |
id | |
rels | |
isEnabled | |
inBlock |
Action class (GRASS module)
Definition at line 1702 of file gmodeler.py.
def gui_modules.gmodeler.ModelAction.__init__ | ( | self, | |
parent, | |||
x, | |||
y, | |||
id = -1 , |
|||
cmd = None , |
|||
task = None , |
|||
width = None , |
|||
height = None |
|||
) |
Definition at line 1704 of file gmodeler.py.
def gui_modules.gmodeler.ModelAction.FindData | ( | self, | |
name | |||
) |
Find data item by name.
Definition at line 1881 of file gmodeler.py.
References gui_modules.gmodeler.ModelObject.GetRelations().
def gui_modules.gmodeler.ModelAction.GetLog | ( | self, | |
string = True |
|||
) |
Get logging info.
Definition at line 1791 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction.isValid.
def gui_modules.gmodeler.ModelAction.GetName | ( | self | ) |
Get name.
Definition at line 1831 of file gmodeler.py.
Referenced by gui_modules.gmodeler.ItemCheckListCtrl.OnCheckItem().
def gui_modules.gmodeler.ModelAction.GetParams | ( | self, | |
dcopy = False |
|||
) |
Get dictionary of parameters.
Definition at line 1839 of file gmodeler.py.
def gui_modules.gmodeler.ModelAction.GetPropDialog | ( | self | ) |
Get properties dialog.
Definition at line 1787 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction.propWin.
def gui_modules.gmodeler.ModelAction.GetTask | ( | self | ) |
Get grassTask instance.
Definition at line 1846 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction.task.
def gui_modules.gmodeler.ModelAction.IsParameterized | ( | self | ) |
Check if action is parameterized.
Definition at line 1877 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction.isParameterized.
def gui_modules.gmodeler.ModelAction.MergeParams | ( | self, | |
params | |||
) |
Merge dictionary of parameters.
Definition at line 1855 of file gmodeler.py.
def gui_modules.gmodeler.ModelAction.OnDraw | ( | self, | |
dc | |||
) |
Draw action in canvas.
Definition at line 1898 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction._setBrush(), and gui_modules.gmodeler.ModelAction._setPen().
def gui_modules.gmodeler.ModelAction.SetId | ( | self, | |
id | |||
) |
Set id.
Definition at line 1771 of file gmodeler.py.
def gui_modules.gmodeler.ModelAction.SetParameterized | ( | self, | |
isparameterized | |||
) |
Set action parameterized.
Definition at line 1871 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction._setPen(), and gui_modules.gmodeler.ModelAction.isParameterized.
def gui_modules.gmodeler.ModelAction.SetParams | ( | self, | |
params | |||
) |
Set dictionary of parameters.
Definition at line 1850 of file gmodeler.py.
def gui_modules.gmodeler.ModelAction.SetProperties | ( | self, | |
params, | |||
propwin | |||
) |
Record properties dialog.
Definition at line 1781 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction.propWin.
def gui_modules.gmodeler.ModelAction.SetValid | ( | self, | |
isvalid | |||
) |
Set instance to be valid/invalid.
Definition at line 1866 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction._setBrush(), and gui_modules.gmodeler.ModelAction.isValid.
def gui_modules.gmodeler.ModelAction.Update | ( | self, | |
running = False |
|||
) |
Update action.
Definition at line 1890 of file gmodeler.py.
References gui_modules.gmodeler.ModelAction._setBrush(), and gui_modules.gmodeler.ModelAction._setPen().
Referenced by gui_modules.gcpmanager.GroupPage.GetOptData(), gui_modules.location_wizard.DatumPage.OnDText(), gui_modules.colorrules.ColorTable.OnSelectionInput(), gui_modules.nviz_tools.NvizToolWindow.OnViewChangedSpin(), gui_modules.mapdisp_window.BufferedWindow.TextBounds(), gui_modules.nviz_tools.NvizToolWindow.UpdatePage(), and gui_modules.nviz_tools.NvizToolWindow.UpdateSettings().
gui_modules.gmodeler.ModelAction.data |
Definition at line 1725 of file gmodeler.py.
Referenced by gui_modules.wxnviz.Nviz.__del__(), gui_modules.wxnviz.Nviz.Draw(), gui_modules.wxnviz.Nviz.EraseMap(), gui_modules.wxnviz.Nviz.InitView(), gui_modules.wxnviz.Nviz.LoadSurface(), gui_modules.wxnviz.Nviz.LoadVector(), gui_modules.wxnviz.Nviz.LoadVolume(), gui_modules.nviz_tools.PositionWindow.PostDraw(), gui_modules.menuform.UpdateThread.run(), gui_modules.wxnviz.Nviz.SaveToFile(), gui_modules.wxnviz.Nviz.SetBgColor(), gui_modules.wxnviz.Nviz.SetFringe(), gui_modules.wxnviz.Nviz.SetLight(), gui_modules.wxnviz.Nviz.SetSurfaceAttr(), gui_modules.wxnviz.Nviz.SetViewDefault(), gui_modules.wxnviz.Nviz.SetZExag(), and gui_modules.nviz_tools.PositionWindow.UpdatePos().
gui_modules.gmodeler.ModelAction.id |
Definition at line 1773 of file gmodeler.py.
Referenced by gui_modules.psmap_dialogs.MapFramePanel.getId(), gui_modules.psmap_dialogs.RasterPanel.getId(), gui_modules.psmap_dialogs.VectorPanel.getId(), gui_modules.psmap_dialogs.MapDialog.OnApply(), gui_modules.psmap_dialogs.RasterDialog.OnApply(), gui_modules.psmap_dialogs.MainVectorDialog.OnApply(), gui_modules.psmap_dialogs.RasterPanel.update(), gui_modules.psmap_dialogs.VectorPanel.update(), gui_modules.psmap_dialogs.MapinfoDialog.update(), gui_modules.psmap_dialogs.ScalebarDialog.update(), and gui_modules.psmap_dialogs.TextDialog.update().
gui_modules.gmodeler.ModelAction.isParameterized |
Definition at line 1728 of file gmodeler.py.
Referenced by gui_modules.gmodeler.ModelAction.IsParameterized(), and gui_modules.gmodeler.ModelAction.SetParameterized().
gui_modules.gmodeler.ModelAction.isValid |
Definition at line 1727 of file gmodeler.py.
Referenced by gui_modules.gmodeler.ModelAction.GetLog(), and gui_modules.gmodeler.ModelAction.SetValid().
gui_modules.gmodeler.ModelAction.parent |
Definition at line 1707 of file gmodeler.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.menuform.mainFrame.OnDone(), 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.gmodeler.ModelAction.propWin |
Definition at line 1723 of file gmodeler.py.
Referenced by gui_modules.gmodeler.ModelAction.GetPropDialog(), gui_modules.gmodeler.ModelData.GetPropDialog(), gui_modules.gmodeler.ModelData.SetPropDialog(), and gui_modules.gmodeler.ModelAction.SetProperties().
gui_modules.gmodeler.ModelAction.task |
Definition at line 1708 of file gmodeler.py.
Referenced by python.task.processTask.get_task(), gui_modules.gmodeler.ModelAction.GetTask(), and gui_modules.menuform.cmdPanel.OnUpdateSelection().