Version: 9.16.0
gui.GraphViewer.OutPortItem Class Reference
Inheritance diagram for gui.GraphViewer.OutPortItem:
Collaboration diagram for gui.GraphViewer.OutPortItem:

Public Member Functions

def __init__ (self, node, canvas)
 
def myMove (self, dx, dy)
 
def link (self, obj)
 
def addOutLink (self, link)
 
- Public Member Functions inherited from gui.GraphViewer.PortItem
def __init__ (self, node, canvas)
 
def moveBy (self, dx, dy)
 
def myMove (self, dx, dy)
 
def getObj (self)
 
def popup (self, canvasView)
 
def connect (self)
 
def link (self, obj)
 
def tooltip (self, view, pos)
 

Private Attributes

 __outList
 

Additional Inherited Members

- Public Attributes inherited from gui.GraphViewer.PortItem
 node
 
 context
 

Detailed Description

Definition at line 337 of file GraphViewer.py.

Constructor & Destructor Documentation

◆ __init__()

def gui.GraphViewer.OutPortItem.__init__ (   self,
  node,
  canvas 
)

Reimplemented from gui.GraphViewer.PortItem.

Definition at line 338 of file GraphViewer.py.

338 def __init__(self,node,canvas):
339 PortItem.__init__(self,node,canvas)
340 self.__outList=[]
341

Member Function Documentation

◆ addOutLink()

def gui.GraphViewer.OutPortItem.addOutLink (   self,
  link 
)

Definition at line 353 of file GraphViewer.py.

353 def addOutLink(self,link):
354 self.__outList.append(link)
355

References gui.CItems.OutControlItem.__outList, gui.CItems.OutPortItem.__outList, and gui.GraphViewer.OutPortItem.__outList.

◆ link()

def gui.GraphViewer.OutPortItem.link (   self,
  obj 
)

Reimplemented from gui.GraphViewer.PortItem.

Definition at line 347 of file GraphViewer.py.

347 def link(self,obj):
348 print("link:",obj)
349 if isinstance(obj,InPortItem):
350 #Connection possible
351 l=LinkItem(self,obj,self.canvas())
352

References gui.CItems.LinkItem.canvas, and gui.graph.Graph.canvas.

◆ myMove()

def gui.GraphViewer.OutPortItem.myMove (   self,
  dx,
  dy 
)

Reimplemented from gui.GraphViewer.PortItem.

Definition at line 342 of file GraphViewer.py.

342 def myMove(self,dx,dy):
343 PortItem.myMove(self,dx,dy)
344 for link in self.__outList:
345 link.setFromPoint( int(self.x()), int(self.y()) )
346

References gui.CItems.OutControlItem.__outList, gui.CItems.OutPortItem.__outList, gui.GraphViewer.OutPortItem.__outList, YACS::HMI::linkPoint.x, YACS::HMI::presentationtype_parser.x(), YACS::HMI::linkPoint.y, and YACS::HMI::presentationtype_parser.y().

Referenced by gui.CItems.TextItem.moveBy(), and gui.CItems.PointItem.moveBy().

Member Data Documentation

◆ __outList


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