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

Action class (GRASS module) More...

Inheritance diagram for gui_modules.gmodeler.ModelAction:
Collaboration diagram for gui_modules.gmodeler.ModelAction:

Public Member Functions

def __init__
def SetId
 Set id.
def SetProperties
 Record properties dialog.
def GetPropDialog
 Get properties dialog.
def GetLog
 Get logging info.
def GetName
 Get name.
def GetParams
 Get dictionary of parameters.
def GetTask
 Get grassTask instance.
def SetParams
 Set dictionary of parameters.
def MergeParams
 Merge dictionary of parameters.
def SetValid
 Set instance to be valid/invalid.
def SetParameterized
 Set action parameterized.
def IsParameterized
 Check if action is parameterized.
def FindData
 Find data item by name.
def Update
 Update action.
def OnDraw
 Draw action in canvas.
- Public Member Functions inherited from gui_modules.gmodeler.ModelObject
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

 parent
 task
 propWin
 data
 isValid
 isParameterized
 id
- Data Fields inherited from gui_modules.gmodeler.ModelObject
 rels
 isEnabled
 inBlock

Detailed Description

Action class (GRASS module)

Definition at line 1702 of file gmodeler.py.


Constructor & Destructor Documentation

def gui_modules.gmodeler.ModelAction.__init__ (   self,
  parent,
  x,
  y,
  id = -1,
  cmd = None,
  task = None,
  width = None,
  height = None 
)

Definition at line 1704 of file gmodeler.py.


Member Function Documentation

def gui_modules.gmodeler.ModelAction.FindData (   self,
  name 
)

Find data item by name.

Definition at line 1881 of file gmodeler.py.

References gui_modules.gmodeler.ModelObject.GetRelations().

def gui_modules.gmodeler.ModelAction.GetLog (   self,
  string = True 
)

Get logging info.

Definition at line 1791 of file gmodeler.py.

References gui_modules.gmodeler.ModelAction.isValid.

def gui_modules.gmodeler.ModelAction.GetName (   self)

Get name.

Definition at line 1831 of file gmodeler.py.

Referenced by gui_modules.gmodeler.ItemCheckListCtrl.OnCheckItem().

def gui_modules.gmodeler.ModelAction.GetParams (   self,
  dcopy = False 
)

Get dictionary of parameters.

Definition at line 1839 of file gmodeler.py.

def gui_modules.gmodeler.ModelAction.GetPropDialog (   self)

Get properties dialog.

Definition at line 1787 of file gmodeler.py.

References gui_modules.gmodeler.ModelAction.propWin.

def gui_modules.gmodeler.ModelAction.GetTask (   self)

Get grassTask instance.

Definition at line 1846 of file gmodeler.py.

References gui_modules.gmodeler.ModelAction.task.

def gui_modules.gmodeler.ModelAction.IsParameterized (   self)

Check if action is parameterized.

Definition at line 1877 of file gmodeler.py.

References gui_modules.gmodeler.ModelAction.isParameterized.

def gui_modules.gmodeler.ModelAction.MergeParams (   self,
  params 
)

Merge dictionary of parameters.

Definition at line 1855 of file gmodeler.py.

def gui_modules.gmodeler.ModelAction.OnDraw (   self,
  dc 
)

Draw action in canvas.

Definition at line 1898 of file gmodeler.py.

References gui_modules.gmodeler.ModelAction._setBrush(), and gui_modules.gmodeler.ModelAction._setPen().

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

Set id.

Definition at line 1771 of file gmodeler.py.

def gui_modules.gmodeler.ModelAction.SetParameterized (   self,
  isparameterized 
)

Set action parameterized.

Definition at line 1871 of file gmodeler.py.

References gui_modules.gmodeler.ModelAction._setPen(), and gui_modules.gmodeler.ModelAction.isParameterized.

def gui_modules.gmodeler.ModelAction.SetParams (   self,
  params 
)

Set dictionary of parameters.

Definition at line 1850 of file gmodeler.py.

def gui_modules.gmodeler.ModelAction.SetProperties (   self,
  params,
  propwin 
)

Record properties dialog.

Definition at line 1781 of file gmodeler.py.

References gui_modules.gmodeler.ModelAction.propWin.

def gui_modules.gmodeler.ModelAction.SetValid (   self,
  isvalid 
)

Set instance to be valid/invalid.

Definition at line 1866 of file gmodeler.py.

References gui_modules.gmodeler.ModelAction._setBrush(), and gui_modules.gmodeler.ModelAction.isValid.


Field Documentation

gui_modules.gmodeler.ModelAction.isParameterized
gui_modules.gmodeler.ModelAction.isValid

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