Version: 9.15.0
gui.GraphViewer.InPortItem Class Reference
Inheritance diagram for gui.GraphViewer.InPortItem:
Collaboration diagram for gui.GraphViewer.InPortItem:

Public Member Functions

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

Private Attributes

 __inList
 

Additional Inherited Members

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

Detailed Description

Definition at line 318 of file GraphViewer.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from gui.GraphViewer.PortItem.

Definition at line 319 of file GraphViewer.py.

319  def __init__(self,node,canvas):
320  PortItem.__init__(self,node,canvas)
321  self.__inList=[]
322 

Member Function Documentation

◆ addInLink()

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

Definition at line 334 of file GraphViewer.py.

334  def addInLink(self,link):
335  self.__inList.append(link)
336 

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

◆ link()

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

Reimplemented from gui.GraphViewer.PortItem.

Definition at line 328 of file GraphViewer.py.

328  def link(self,obj):
329  print("link:",obj)
330  if isinstance(obj,OutPortItem):
331  #Connection possible
332  l=LinkItem(obj,self,self.canvas())
333 

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

◆ myMove()

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

Reimplemented from gui.GraphViewer.PortItem.

Definition at line 323 of file GraphViewer.py.

323  def myMove(self,dx,dy):
324  PortItem.myMove(self,dx,dy)
325  for link in self.__inList:
326  link.setToPoint( int(self.x()), int(self.y()) )
327 

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: