GRASS Programmer's Manual  6.5.svn(2012)-r51648
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
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.
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 validity for action.
def IsValid
 Check validity (all required parameters set)
def IsParameterized
 Check if action is parameterized.
def FindData
 Find data item by name.
def Update
 Update action.
def OnDraw
 Draw action in canvas.

Data Fields

 parent
 task
 propWin
 data
 isValid
 isParameterized
 id
 IsParameterized

Detailed Description

Action class (GRASS module)

Definition at line 844 of file model.py.


Constructor & Destructor Documentation

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

Definition at line 846 of file model.py.


Member Function Documentation

def model.ModelAction.FindData (   self,
  name 
)

Find data item by name.

Definition at line 1056 of file model.py.

References model.ModelObject.GetRelations().

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

Get logging info.

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

Definition at line 939 of file model.py.

References tools.range.

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

Get dictionary of parameters.

Definition at line 996 of file model.py.

Get properties dialog.

Definition at line 935 of file model.py.

References model.ModelAction.propWin.

def model.ModelAction.GetTask (   self)

Get grassTask instance.

Definition at line 1003 of file model.py.

References model.ModelAction.task.

Check if action is parameterized.

Definition at line 1052 of file model.py.

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 model.py.

References model.ModelAction.isValid.

def model.ModelAction.MergeParams (   self,
  params 
)

Merge dictionary of parameters.

Definition at line 1012 of file model.py.

def model.ModelAction.OnDraw (   self,
  dc 
)

Draw action in canvas.

Definition at line 1073 of file model.py.

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

def model.ModelAction.SetId (   self,
  id 
)

Set id.

Definition at line 919 of file model.py.

def model.ModelAction.SetParams (   self,
  params 
)

Set dictionary of parameters.

Definition at line 1007 of file model.py.

def model.ModelAction.SetProperties (   self,
  params,
  propwin 
)

Record properties dialog.

Definition at line 929 of file model.py.

References model.ModelAction.propWin.

def model.ModelAction.SetValid (   self,
  options 
)

Set validity for action.

Parameters:
optionsdictionary with flags and params (gtask)

Definition at line 1023 of file model.py.

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


Field Documentation


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