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

Data - action relation. More...

Inheritance diagram for model.ModelRelation:
Collaboration diagram for model.ModelRelation:

Public Member Functions

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

Data Fields

 fromShape
 
 toShape
 
 param
 
 parent
 

Detailed Description

Data - action relation.

Definition at line 1250 of file model.py.

Constructor & Destructor Documentation

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

Definition at line 1252 of file model.py.

def model.ModelRelation.__del__ (   self)

Definition at line 1263 of file model.py.

Member Function Documentation

def model.ModelRelation.GetControlPoints (   self)

Get list of control points.

Definition at line 1304 of file model.py.

References model.ModelRelation._points.

def model.ModelRelation.GetData (   self)

Get related ModelData instance.

Returns
ModelData instance
None if not found

Definition at line 1277 of file model.py.

References model.ModelRelation.fromShape, and model.ModelRelation.toShape.

def model.ModelRelation.GetFrom (   self)

Get id of 'from' shape.

Definition at line 1269 of file model.py.

References model.ModelRelation.fromShape.

def model.ModelRelation.GetName (   self)
def model.ModelRelation.GetTo (   self)

Get id of 'to' shape.

Definition at line 1273 of file model.py.

References model.ModelRelation.toShape.

def model.ModelRelation.OnDraw (   self,
  dc 
)

Draw relation.

Definition at line 1315 of file model.py.

References model.ModelAction._setPen(), model.ModelData._setPen(), and model.ModelRelation._setPen().

def model.ModelRelation.ResetShapes (   self)

Reset related objects.

Definition at line 1294 of file model.py.

def model.ModelRelation.SetControlPoints (   self,
  points 
)

Set control points.

Definition at line 1300 of file model.py.

References model.ModelRelation._points.

Field Documentation

model.ModelRelation.fromShape

Definition at line 1253 of file model.py.

Referenced by model.ModelRelation.GetData(), and model.ModelRelation.GetFrom().

model.ModelRelation.toShape

Definition at line 1254 of file model.py.

Referenced by model.ModelRelation.GetData(), and model.ModelRelation.GetTo().


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