Пример #1
0
    def clearHighlightPaths(self):
        for node in self.mNodes:
            if (node.isHighlighted()):
                node.setHighlighted(False)
                node.update()
        
            for link in node.mLinks:
                if link.isHighlighted():
                    link.setHighlighted(False)
                    link.trackNodes()
                    link.update()
 
        self.mCenterNode.setHighlighted(False)
Пример #2
0
    def highlightPathToParent(self, node):
        infoMessage("groogleView::highlightPathToParent: highlighting path to parent: ", node.mName)
        if (node == self.mCenterNode):
            warningMessage("groogleView::highlightPathToParent: shouldn't be parent node")
        
        while node != "":
            node.setHighlighted(True)
            node.update()

            if not node.mParent == "":
                link = node.getLink(node.mParent)
                link.setHighlighted(True)
                link.trackNodes()
                link.update()

            node = node.mParent