Пример #1
0
    def OnNodeName(self, cmdEvent):
	if self.vwr is None:
	    return
	node = self.NodeName.GetValue()
	self.vwr.gotoNode(node, HV_ANIMATE)

	# Simulate picking the node as well.
	hv.selectCB(node, 0, 0);
	self.SelectedNode(node)

	self.DrawGL()
	pass
Пример #2
0
    def OnNodeName(self, cmdEvent):
        if self.vwr is None:
            return
        node = self.NodeName.GetValue()
        self.vwr.gotoNode(node, HV_ANIMATE)

        # Simulate picking the node as well.
        hv.selectCB(node, 0, 0)
        self.SelectedNode(node)

        self.DrawGL()
        pass
Пример #3
0
    def OnGoToTop(self, buttonEvent):
	if self.vwr is None:
	    return

	# Tell the HypView to reset.
	self.vwr.gotoCenterNode(HV_ANIMATE)

	# Simulate picking the top node.
	##ctr = self.vwr.getGraphCenter()
	ctr = hv.getGraphCenter()
	##print "center node", ctr
	hv.selectCB(ctr, 0, 0);

	# Update the node info and draw.
	self.SelectedNode(ctr)
	self.DrawGL()
	pass
Пример #4
0
    def OnGoToTop(self, buttonEvent):
        if self.vwr is None:
            return

        # Tell the HypView to reset.
        self.vwr.gotoCenterNode(HV_ANIMATE)

        # Simulate picking the top node.
        ##ctr = self.vwr.getGraphCenter()
        ctr = hv.getGraphCenter()
        ##print "center node", ctr
        hv.selectCB(ctr, 0, 0)

        # Update the node info and draw.
        self.SelectedNode(ctr)
        self.DrawGL()
        pass