GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Public Member Functions | |
def | __init__ |
def | GetName |
Get name. More... | |
def | GetWidth |
Get object width. More... | |
def | GetHeight |
Get object height. More... | |
def | SetItems |
Set items (id) More... | |
Public Member Functions inherited from model.ModelItem | |
def | __init__ |
Abstract class for loops and conditions. More... | |
def | GetText |
Get loop text. More... | |
def | GetItems |
Get items (id) More... | |
def | SetId |
Set loop id. More... | |
def | SetText |
Set loop text (condition) More... | |
def | GetLog |
Get log info. More... | |
def | AddRelation |
Record relation. More... | |
def | Clear |
Clear object, remove rels. 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 | |
width | |
height | |
Data Fields inherited from model.ModelItem | |
parent | |
text | |
items | |
id | |
rels | |
Data Fields inherited from model.ModelObject | |
id | |
rels | |
isEnabled | |
inBlock | |
def model.ModelCondition.__init__ | ( | self, | |
parent, | |||
x, | |||
y, | |||
id = -1 , |
|||
width = None , |
|||
height = None , |
|||
text = '' , |
|||
items = { 'if' : [] , |
|||
else | |||
) |
def model.ModelCondition.GetHeight | ( | self | ) |
Get object height.
Definition at line 1468 of file model.py.
References render.Map.height, and model.ModelCondition.height.
def model.ModelCondition.GetName | ( | self | ) |
Get name.
Definition at line 1460 of file model.py.
Referenced by dialogs.ItemCheckListCtrl.OnCheckItem(), widgets.SingleSymbolPanel.OnDoubleClick(), and widgets.SingleSymbolPanel.OnLeftDown().
def model.ModelCondition.GetWidth | ( | self | ) |
Get object width.
Definition at line 1464 of file model.py.
References render.Map.width, and model.ModelCondition.width.
def model.ModelCondition.SetItems | ( | self, | |
items, | |||
branch = 'if' |
|||
) |
Set items (id)
items | list of items |
branch | 'if' / 'else' |
Definition at line 1472 of file model.py.
References model.Model.items, and model.ModelItem.items.
Referenced by prompt.GPromptPopUp.__init__(), gselect.FormatSelect.__init__(), gselect.SubGroupSelect.Insert(), gselect.ColumnSelect.InsertColumns(), gselect.LayerSelect.InsertLayers(), gselect.ColumnSelect.InsertTableColumns(), gselect.TableSelect.InsertTables(), gselect.LocationSelect.UpdateItems(), gselect.MapsetSelect.UpdateItems(), and gselect.ProjSelect.UpdateItems().
model.ModelCondition.height |
Definition at line 1438 of file model.py.
Referenced by wxnviz.Texture.Draw(), utils.Rect2D.GetHeight(), model.ModelCondition.GetHeight(), wxnviz.Texture.Load(), wxnviz.Texture.Resize(), wxnviz.Nviz.ResizeWindow(), wxnviz.Nviz.SaveToFile(), and wxnviz.Nviz.Start2D().
model.ModelCondition.width |
Definition at line 1434 of file model.py.
Referenced by wxnviz.Texture.Draw(), wxnviz.Nviz.GetRotationParameters(), utils.Rect2D.GetWidth(), model.ModelCondition.GetWidth(), wxnviz.Texture.Load(), wxnviz.Texture.Resize(), wxnviz.Nviz.ResizeWindow(), wxnviz.Nviz.SaveToFile(), and wxnviz.Nviz.Start2D().