Version: 9.16.0
gui.CItems.InPortItem Class Reference
Inheritance diagram for gui.CItems.InPortItem:
Collaboration diagram for gui.CItems.InPortItem:

Public Member Functions

def __init__ (self, node, port, canvas)
 
def myMove (self, dx, dy)
 
def link (self, obj)
 
def addInLink (self, link)
 
- Public Member Functions inherited from gui.CItems.PortItem
def __init__ (self, node, port, 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)
 
def selected (self)
 

Private Attributes

 __inList
 

Additional Inherited Members

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

Detailed Description

Definition at line 430 of file CItems.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from gui.CItems.PortItem.

Reimplemented in gui.CItems.InStreamItem.

Definition at line 431 of file CItems.py.

431 def __init__(self,node,port,canvas):
432 PortItem.__init__(self,node,port,canvas)
433 self.__inList=[]
434

Member Function Documentation

◆ addInLink()

def gui.CItems.InPortItem.addInLink (   self,
  link 
)

Definition at line 448 of file CItems.py.

448 def addInLink(self,link):
449 self.__inList.append(link)
450

References gui.CItems.InControlItem.__inList, gui.CItems.InPortItem.__inList, and gui.GraphViewer.InPortItem.__inList.

◆ link()

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

Reimplemented from gui.CItems.PortItem.

Definition at line 440 of file CItems.py.

440 def link(self,obj):
441 #Here we create the link between self and obj.
442 #self has been declared connecting in connect method
443 print("link:",obj)
444 if isinstance(obj,OutPortItem):
445 #Connection possible
446 l=LinkItem(obj,self,self.canvas())
447

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

◆ myMove()

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

Reimplemented from gui.CItems.PortItem.

Definition at line 435 of file CItems.py.

435 def myMove(self,dx,dy):
436 PortItem.myMove(self,dx,dy)
437 for link in self.__inList:
438 link.setToPoint( int(self.x()), int(self.y()) )
439

References gui.CItems.InControlItem.__inList, gui.CItems.InPortItem.__inList, gui.GraphViewer.InPortItem.__inList, 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

◆ __inList


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