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

Action class (GRASS module) More...

Inheritance diagram for model.ModelAction:
Collaboration diagram for model.ModelAction:

Public Member Functions

def __init__
def SetId
 Set id. More...
def SetProperties
 Record properties dialog. More...
def GetPropDialog
 Get properties dialog. More...
def GetLog
 Get logging info. More...
def GetName
 Get name. More...
def GetParams
 Get dictionary of parameters. More...
def GetTask
 Get grassTask instance. More...
def SetParams
 Set dictionary of parameters. More...
def MergeParams
 Merge dictionary of parameters. More...
def SetValid
 Set validity for action. More...
def IsValid
 Check validity (all required parameters set) More...
def IsParameterized
 Check if action is parameterized. More...
def FindData
 Find data item by name. More...
def Update
 Update action. More...
def OnDraw
 Draw action in canvas. 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

- Data Fields inherited from model.ModelObject

Detailed Description

Action class (GRASS module)

Definition at line 844 of file

Constructor & Destructor Documentation

def model.ModelAction.__init__ (   self,
  id = -1,
  cmd = None,
  task = None,
  width = None,
  height = None 

Definition at line 846 of file

Member Function Documentation

def model.ModelAction.FindData (   self,

Find data item by name.

Definition at line 1056 of file

References model.ModelObject.GetRelations().

def model.ModelAction.GetLog (   self,
  string = True,
  substitute = None 

Get logging info.

stringTrue to get cmd as a string otherwise a list
substitutedictionary of parameter to substitute or None

Definition at line 939 of file

References tools.range.

def model.ModelAction.GetName (   self)
def model.ModelAction.GetParams (   self,
  dcopy = False 

Get dictionary of parameters.

Definition at line 996 of file

def model.ModelAction.GetPropDialog (   self)

Get properties dialog.

Definition at line 935 of file

References model.ModelAction.propWin.

def model.ModelAction.GetTask (   self)

Get grassTask instance.

Definition at line 1003 of file

References model.ModelAction.task.

def model.ModelAction.IsParameterized (   self)

Check if action is parameterized.

Definition at line 1052 of file

References model.ModelAction.isParameterized, and model.ModelAction.IsParameterized.

def model.ModelAction.IsValid (   self)

Check validity (all required parameters set)

Definition at line 1048 of file

References model.ModelAction.isValid.

def model.ModelAction.MergeParams (   self,

Merge dictionary of parameters.

Definition at line 1012 of file

def model.ModelAction.OnDraw (   self,

Draw action in canvas.

Definition at line 1073 of file

References model.ModelAction._setBrush(), and model.ModelAction._setPen().

def model.ModelAction.SetId (   self,

Set id.

Definition at line 919 of file

def model.ModelAction.SetParams (   self,

Set dictionary of parameters.

Definition at line 1007 of file

def model.ModelAction.SetProperties (   self,

Record properties dialog.

Definition at line 929 of file

References model.ModelAction.propWin.

def model.ModelAction.SetValid (   self,

Set validity for action.

optionsdictionary with flags and params (gtask)

Definition at line 1023 of file

References model.ModelAction.isParameterized, and model.ModelAction.isValid.

Field Documentation


Definition at line 873 of file

Referenced by model.ModelAction.IsParameterized(), and model.ModelAction.SetValid().


Definition at line 1033 of file

Referenced by model.ModelAction.IsParameterized().


Definition at line 872 of file

Referenced by model.ModelAction.IsValid(), and model.ModelAction.SetValid().


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