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

Public Member Functions

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

Private Attributes

 __outList
 

Additional Inherited Members

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

Detailed Description

Definition at line 348 of file CItems.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from gui.CItems.ControlItem.

Definition at line 349 of file CItems.py.

349  def __init__(self,node,port,canvas):
350  ControlItem.__init__(self,node,port,canvas)
351  self.__outList=[]
352 

Member Function Documentation

◆ addOutLink()

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

Definition at line 366 of file CItems.py.

366  def addOutLink(self,link):
367  self.__outList.append(link)
368 

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

◆ link()

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

Reimplemented from gui.CItems.ControlItem.

Definition at line 358 of file CItems.py.

358  def link(self,obj):
359  #Here we create the link between self and obj.
360  #self has been declared connecting in connect method
361  print("link:",obj)
362  if isinstance(obj,InControlItem):
363  #Connection possible
364  l=LinkItem(self,obj,self.canvas())
365 

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

◆ links()

def gui.CItems.OutControlItem.links (   self)

Definition at line 375 of file CItems.py.

375  def links(self):
376  return self.__outList
377 

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

◆ myMove()

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

Reimplemented from gui.CItems.ControlItem.

Definition at line 353 of file CItems.py.

353  def myMove(self,dx,dy):
354  ControlItem.myMove(self,dx,dy)
355  for link in self.__outList:
356  link.setFromPoint( int(self.x()), int(self.y()) )
357 

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().

◆ tooltip()

def gui.CItems.OutControlItem.tooltip (   self,
  view,
  pos 
)

Reimplemented from gui.CItems.ControlItem.

Definition at line 369 of file CItems.py.

369  def tooltip(self,view,pos):
370  r = QRect(pos.x(), pos.y(), self.width(), self.height())
371  s = QString( "outgate:")
372  view.tip( r, s )
373  #QToolTip(view).tip( r, s )
374 

References YACS::HMI::presentationtype_parser.height(), and YACS::HMI::presentationtype_parser.width().

Member Data Documentation

◆ __outList


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