GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
model.ModelItem Class Reference
Inheritance diagram for model.ModelItem:
Collaboration diagram for model.ModelItem:

Public Member Functions

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

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

Detailed Description

Definition at line 1323 of file model.py.

Constructor & Destructor Documentation

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

Abstract class for loops and conditions.

Definition at line 1324 of file model.py.

Member Function Documentation

def model.ModelItem.AddRelation (   self,
  rel 
)

Record relation.

Definition at line 1356 of file model.py.

def model.ModelItem.Clear (   self)

Clear object, remove rels.

Definition at line 1360 of file model.py.

Referenced by colorrules.RulesPanel.OnClearAll().

def model.ModelItem.GetItems (   self)
def model.ModelItem.GetLog (   self)

Get log info.

Definition at line 1349 of file model.py.

References model.ModelItem.text.

def model.ModelItem.GetText (   self)

Get loop text.

Definition at line 1331 of file model.py.

References model.ModelItem.text.

def model.ModelItem.SetId (   self,
  id 
)

Set loop id.

Definition at line 1339 of file model.py.

def model.ModelItem.SetText (   self,
  cond 
)

Set loop text (condition)

Definition at line 1343 of file model.py.

References render.Overlay.id, model.ModelObject.id, and model.ModelItem.text.

Field Documentation

model.ModelItem.items
model.ModelItem.rels

Definition at line 1362 of file model.py.


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