GRASS Programmer's Manual  6.4.2(2012)
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
gui_modules.gmodeler.ModelItem Class Reference
Inheritance diagram for gui_modules.gmodeler.ModelItem:
Collaboration diagram for gui_modules.gmodeler.ModelItem:

Public Member Functions

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.
- Public Member Functions inherited from gui_modules.gmodeler.ModelObject
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

 parent
 text
 items
 id
 rels
- Data Fields inherited from gui_modules.gmodeler.ModelObject
 isEnabled
 inBlock

Detailed Description

Definition at line 4144 of file gmodeler.py.


Constructor & Destructor Documentation

def gui_modules.gmodeler.ModelItem.__init__ (   self,
  parent,
  x,
  y,
  id = -1,
  width = None,
  height = None,
  text = '',
  items = [] 
)

Abstract class for loops and conditions.

Reimplemented in gui_modules.gmodeler.ModelLoop.

Definition at line 4145 of file gmodeler.py.


Member Function Documentation

def gui_modules.gmodeler.ModelItem.AddRelation (   self,
  rel 
)

Record relation.

Reimplemented from gui_modules.gmodeler.ModelObject.

Definition at line 4177 of file gmodeler.py.

def gui_modules.gmodeler.ModelItem.Clear (   self)

Clear object, remove rels.

Definition at line 4181 of file gmodeler.py.

def gui_modules.gmodeler.ModelItem.GetLog (   self)

Get log info.

Definition at line 4170 of file gmodeler.py.

References gui_modules.gmodeler.ModelItem.text.

def gui_modules.gmodeler.ModelItem.GetText (   self)

Get loop text.

Definition at line 4152 of file gmodeler.py.

References gui_modules.gmodeler.ModelItem.text.

def gui_modules.gmodeler.ModelItem.SetId (   self,
  id 
)

Set loop id.

Definition at line 4160 of file gmodeler.py.

def gui_modules.gmodeler.ModelItem.SetText (   self,
  cond 
)

Set loop text (condition)

Definition at line 4164 of file gmodeler.py.

References gui_modules.gmodeler.ModelObject.id, and gui_modules.gmodeler.ModelItem.text.


Field Documentation

gui_modules.gmodeler.ModelItem.rels

Reimplemented from gui_modules.gmodeler.ModelObject.

Definition at line 4183 of file gmodeler.py.

gui_modules.gmodeler.ModelItem.text

The documentation for this class was generated from the following file: