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