Version: 8.3.0
gui.Items.DataLinksItem Class Reference
Inheritance diagram for gui.Items.DataLinksItem:
Collaboration diagram for gui.Items.DataLinksItem:

Public Member Functions

def __init__
 
def getIconName
 
def isExpandable
 
def getChildren
 
def addLink
 
- Public Member Functions inherited from gui.Item.Item
def __init__
 
def isExpandable
 
def getChildren
 
def father
 
def getIconName
 
def panel
 
def box
 
def selected
 
def dblselected
 

Public Attributes

 item
 
 label
 
- Public Attributes inherited from gui.Item.Item
 label
 
 emitting
 

Detailed Description

Item for all data links of a composed node

Definition at line 87 of file Items.py.

Constructor & Destructor Documentation

def gui.Items.DataLinksItem.__init__ (   self,
  item 
)

Definition at line 89 of file Items.py.

89 
90  def __init__(self,item):
91  Item.Item.__init__(self)
92  self.item=item
93  self.label="Data Links"

Member Function Documentation

def gui.Items.DataLinksItem.addLink (   self,
  link 
)

Definition at line 114 of file Items.py.

115  def addLink(self,link):
116  CONNECTOR.Emit(self,"add",link)
def gui.Items.DataLinksItem.getChildren (   self)

Definition at line 99 of file Items.py.

99 
100  def getChildren(self):
101  sublist=[]
102  for pout,pin in self.item.node.getSetOfInternalLinks():
103  if pout.getNode().getFather() != self.item.node and pin.getNode().getFather() != self.item.node:
104  continue
105  if isinstance(pin,pilot_InputDataStreamPort):
106  sublist.append(StreamLinkItem(pin,pout))
107  else:
108  sublist.append(DataLinkItem(pin,pout))
109  #for pout,pin in self.item.node.getSetOfLinksLeavingCurrentScope():
110  # sublist.append(DataLinkItem(pin,pout))
111  #for pin,pout in self.item.node.getSetOfLinksComingInCurrentScope():
112  # sublist.append(DataLinkItem(pin,pout))
113  return sublist
def gui.Items.DataLinksItem.getIconName (   self)

Definition at line 94 of file Items.py.

94 
95  def getIconName(self):
return "folder"
def gui.Items.DataLinksItem.isExpandable (   self)

Definition at line 96 of file Items.py.

96 
97  def isExpandable(self):
98  return True

Member Data Documentation

gui.Items.DataLinksItem.item

Definition at line 91 of file Items.py.

gui.Items.DataLinksItem.label

Definition at line 92 of file Items.py.


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