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

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
 

Detailed Description

Definition at line 1427 of file model.py.

Constructor & Destructor Documentation

def model.ModelCondition.__init__ (   self,
  parent,
  x,
  y,
  id = -1,
  width = None,
  height = None,
  text = '',
  items = { 'if' : [],
  else 
)

Definition at line 1429 of file model.py.

Member Function Documentation

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)
def model.ModelCondition.GetWidth (   self)

Get object width.

Definition at line 1464 of file model.py.

References render.Map.width, and model.ModelCondition.width.

Field Documentation


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