Example #1
0
    /// <summary>
    /// Builds the function tree using the interface nodes. Fails if there are no children of the root node
    /// </summary>
    /// <returns>If the tree creation succeeded or not</returns>
    public bool BuildFunctionTree()
    {
        btInterfaceNode rootInterfaceNode = btInterfaceTreeManager.instance.rootNode;

        this.rootFunctionNode = new btFunctionRootNode();
        this.rootFunctionNode.interfaceNode = btInterfaceTreeManager.instance.rootNode;
        btInterfaceTreeManager.instance.rootNode.functionNode = this.rootFunctionNode;
        this.rootFunctionNode.AddChildNodes_r(rootInterfaceNode);

        return(this.rootFunctionNode.children.Count > 0);
    }
Example #2
0
 /// <summary>
 /// Destroys the functional tree
 /// </summary>
 public void DestroyTree()
 {
     btInterfaceTreeManager.instance.RemoveFunctionNodeConnections();
     this.rootFunctionNode = null;
 }