Version: 9.15.0
gui.CItems.OutPortItem Class Reference
Inheritance diagram for gui.CItems.OutPortItem:
Collaboration diagram for gui.CItems.OutPortItem:

Public Member Functions

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

Private Attributes

 __outList
 

Additional Inherited Members

- Public Attributes inherited from gui.CItems.PortItem
 port
 
 item
 
 node
 
 context
 

Detailed Description

Definition at line 451 of file CItems.py.

Constructor & Destructor Documentation

◆ __init__()

def gui.CItems.OutPortItem.__init__ (   self,
  node,
  port,
  canvas 
)

Reimplemented from gui.CItems.PortItem.

Reimplemented in gui.CItems.OutStreamItem.

Definition at line 452 of file CItems.py.

452  def __init__(self,node,port,canvas):
453  PortItem.__init__(self,node,port,canvas)
454  self.__outList=[]
455 

Member Function Documentation

◆ addOutLink()

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

Definition at line 469 of file CItems.py.

469  def addOutLink(self,link):
470  self.__outList.append(link)
471 

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

◆ link()

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

Reimplemented from gui.CItems.PortItem.

Definition at line 461 of file CItems.py.

461  def link(self,obj):
462  #Here we create the link between self and obj.
463  #self has been declared connecting in connect method
464  print("link:",obj)
465  if isinstance(obj,InPortItem):
466  #Connection possible
467  l=LinkItem(self,obj,self.canvas())
468 

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

◆ links()

def gui.CItems.OutPortItem.links (   self)

Definition at line 472 of file CItems.py.

472  def links(self):
473  return self.__outList
474 

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

◆ myMove()

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

Reimplemented from gui.CItems.PortItem.

Definition at line 456 of file CItems.py.

456  def myMove(self,dx,dy):
457  PortItem.myMove(self,dx,dy)
458  for link in self.__outList:
459  link.setFromPoint( int(self.x()), int(self.y()) )
460 

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: