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

Data - action relation. More...

Public Member Functions

def __init__
def __del__
def GetFrom
 Get id of 'from' shape.
def GetTo
 Get id of 'to' shape.
def GetData
 Get related ModelData instance.
def GetName
 Get parameter name.
def ResetShapes
 Reset related objects.
def SetControlPoints
 Set control points.
def GetControlPoints
 Get list of control points.
def OnDraw
 Draw relation.
def SetName

Data Fields

 fromShape
 toShape
 param
 parent

Detailed Description

Data - action relation.

Definition at line 2533 of file gmodeler.py.

Constructor & Destructor Documentation

def gui_modules.gmodeler.ModelRelation.__init__ (   self,
  parent,
  fromShape,
  toShape,
  param = '' 
)

Definition at line 2535 of file gmodeler.py.

def gui_modules.gmodeler.ModelRelation.__del__ (   self)

Definition at line 2546 of file gmodeler.py.

Member Function Documentation

def gui_modules.gmodeler.ModelRelation.GetControlPoints (   self)

Get list of control points.

Definition at line 2587 of file gmodeler.py.

References gui_modules.gmodeler.ModelRelation._points.

def gui_modules.gmodeler.ModelRelation.GetData (   self)

Get related ModelData instance.

Returns
ModelData instance
None if not found

Definition at line 2560 of file gmodeler.py.

References gui_modules.gmodeler.ModelRelation.fromShape, and gui_modules.gmodeler.ModelRelation.toShape.

def gui_modules.gmodeler.ModelRelation.GetFrom (   self)

Get id of 'from' shape.

Definition at line 2552 of file gmodeler.py.

References gui_modules.gmodeler.ModelRelation.fromShape.

def gui_modules.gmodeler.ModelRelation.GetName (   self)

Get parameter name.

Definition at line 2573 of file gmodeler.py.

References gui_modules.gmodeler.ModelRelation.param.

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

def gui_modules.gmodeler.ModelRelation.GetTo (   self)

Get id of 'to' shape.

Definition at line 2556 of file gmodeler.py.

References gui_modules.gmodeler.ModelRelation.toShape.

def gui_modules.gmodeler.ModelRelation.OnDraw (   self,
  dc 
)
def gui_modules.gmodeler.ModelRelation.ResetShapes (   self)

Reset related objects.

Definition at line 2577 of file gmodeler.py.

def gui_modules.gmodeler.ModelRelation.SetControlPoints (   self,
  points 
)

Set control points.

Definition at line 2583 of file gmodeler.py.

References gui_modules.gmodeler.ModelRelation._points.

Field Documentation

gui_modules.gmodeler.ModelRelation.fromShape
gui_modules.gmodeler.ModelRelation.toShape

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