GRASS Programmer's Manual
6.4.2(2012)
|
Public Member Functions | |
def | __init__ |
def | GetName |
Get name. | |
def | GetWidth |
Get object width. | |
def | GetHeight |
Get object height. | |
def | SetItems |
Set items (id) | |
![]() | |
def | __init__ |
Abstract class for loops and conditions. | |
def | GetText |
Get loop text. | |
def | GetItems |
Get items (id) | |
def | SetId |
Set loop id. | |
def | SetText |
Set loop text (condition) | |
def | GetLog |
Get log info. | |
def | AddRelation |
Record relation. | |
def | Clear |
Clear object, remove rels. | |
![]() | |
def | __init__ |
def | __del__ |
def | GetId |
Get id. | |
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 | |
width | |
height | |
![]() | |
parent | |
text | |
items | |
id | |
rels | |
![]() | |
isEnabled | |
inBlock |
Definition at line 4589 of file gmodeler.py.
def gui_modules.gmodeler.ModelCondition.__init__ | ( | self, | |
parent, | |||
x, | |||
y, | |||
id = -1 , |
|||
width = None , |
|||
height = None , |
|||
text = '' , |
|||
items = { 'if' : [] , |
|||
else | |||
) |
Definition at line 4591 of file gmodeler.py.
def gui_modules.gmodeler.ModelCondition.GetHeight | ( | self | ) |
Get object height.
Definition at line 4630 of file gmodeler.py.
References gui_modules.colorrules.ColorTable.height, gui_modules.gcpmapdisp.MapFrame.height, gui_modules.gdialogs.ImageSizeDialog.height, and gui_modules.gmodeler.ModelCondition.height.
def gui_modules.gmodeler.ModelCondition.GetName | ( | self | ) |
Get name.
Definition at line 4622 of file gmodeler.py.
Referenced by gui_modules.gmodeler.ItemCheckListCtrl.OnCheckItem().
def gui_modules.gmodeler.ModelCondition.GetWidth | ( | self | ) |
Get object width.
Definition at line 4626 of file gmodeler.py.
References gui_modules.colorrules.ColorTable.width, gui_modules.gdialogs.ImageSizeDialog.width, and gui_modules.gmodeler.ModelCondition.width.
def gui_modules.gmodeler.ModelCondition.SetItems | ( | self, | |
items, | |||
branch = 'if' |
|||
) |
Set items (id)
items | list of items |
branch | 'if' / 'else' |
Definition at line 4634 of file gmodeler.py.
References gui_modules.gmodeler.Model.items, gui_modules.gmodeler.WriteModelFile.items, and gui_modules.gmodeler.ModelItem.items.
Referenced by gui_modules.prompt.GPromptPopUp.__init__(), gui_modules.gselect.FormatSelect.__init__(), gui_modules.gselect.SubGroupSelect.Insert(), gui_modules.gselect.ColumnSelect.InsertColumns(), gui_modules.gselect.LayerSelect.InsertLayers(), gui_modules.gselect.ColumnSelect.InsertTableColumns(), gui_modules.gselect.TableSelect.InsertTables(), gui_modules.gselect.LocationSelect.UpdateItems(), gui_modules.gselect.MapsetSelect.UpdateItems(), and gui_modules.gselect.ProjSelect.UpdateItems().
gui_modules.gmodeler.ModelCondition.height |
Definition at line 4600 of file gmodeler.py.
Referenced by gui_modules.render.Map.AdjustRegion(), gui_modules.render.Map.AlignExtentFromDisplay(), gui_modules.render.Map.ChangeMapSize(), gui_modules.gmodeler.ModelCondition.GetHeight(), gui_modules.render.Map.Render(), gui_modules.wxnviz.Nviz.ResizeWindow(), and gui_modules.wxnviz.Nviz.SaveToFile().
gui_modules.gmodeler.ModelCondition.width |
Definition at line 4596 of file gmodeler.py.
Referenced by gui_modules.render.Map.AdjustRegion(), gui_modules.render.Map.AlignExtentFromDisplay(), gui_modules.render.Map.ChangeMapSize(), gui_modules.gmodeler.ModelCondition.GetWidth(), gui_modules.render.Map.Render(), gui_modules.wxnviz.Nviz.ResizeWindow(), and gui_modules.wxnviz.Nviz.SaveToFile().