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

Public Member Functions

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

 id
 rels
 isEnabled
 inBlock

Detailed Description

Definition at line 1614 of file gmodeler.py.


Constructor & Destructor Documentation

def gui_modules.gmodeler.ModelObject.__init__ (   self,
  id = -1 
)

Definition at line 1615 of file gmodeler.py.

def gui_modules.gmodeler.ModelObject.__del__ (   self)

Definition at line 1622 of file gmodeler.py.


Member Function Documentation

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

Record new relation.

Reimplemented in gui_modules.gmodeler.ModelItem.

Definition at line 1629 of file gmodeler.py.

def gui_modules.gmodeler.ModelObject.GetBlock (   self)

Get list of related ModelObject(s) which defines block (loop/condition)

Returns:
list of ModelObjects

Definition at line 1683 of file gmodeler.py.

References gui_modules.gmodeler.ModelObject.inBlock.

def gui_modules.gmodeler.ModelObject.GetBlockId (   self)

Get list of related ids which defines block.

Returns:
list of ids

Definition at line 1691 of file gmodeler.py.

References gui_modules.gmodeler.ModelObject.inBlock.

def gui_modules.gmodeler.ModelObject.GetId (   self)

Get id.

Definition at line 1625 of file gmodeler.py.

Referenced by gui_modules.nviz_tools.NvizToolWindow.PostViewEvent().

def gui_modules.gmodeler.ModelObject.GetRelations (   self,
  fdir = None 
)
def gui_modules.gmodeler.ModelObject.IsEnabled (   self)

Get True if action is enabled, otherwise False.

Definition at line 1653 of file gmodeler.py.

References gui_modules.gmodeler.ModelObject.isEnabled.

def gui_modules.gmodeler.ModelObject.SetBlock (   self,
  item 
)

Add object to the block (loop/condition)

Parameters:
itemreference to ModelLoop or ModelCondition which defines loops/condition

Definition at line 1665 of file gmodeler.py.

def gui_modules.gmodeler.ModelObject.UnSetBlock (   self,
  item 
)

Remove object from the block (loop/consition)

Parameters:
itemreference to ModelLoop or ModelCondition which defines loops/codition

Definition at line 1674 of file gmodeler.py.

References gui_modules.gmodeler.ModelObject.inBlock.


Field Documentation

gui_modules.gmodeler.ModelObject.isEnabled
gui_modules.gmodeler.ModelObject.rels

Reimplemented in gui_modules.gmodeler.ModelItem.

Definition at line 1617 of file gmodeler.py.

Referenced by gui_modules.gmodeler.ModelObject.GetRelations().


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