Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2024.1.0 - Русский


uiDumpTree

Printing an uitree in the console (text mode)

Syntax

uiDumpTree(tree[,b])

Input parameters

tree

an uitree

b(optional)

display features of each node of the tree. By default b is '%F'.

Description

Display a tree into the console(text mode).

Examples

// We must create leaves, nodes, branches, and the tree
node1 = uiCreateNode('Node 1');
leaf11 = uiCreateNode('leaf 1.1');
leaf12 = uiCreateNode('leaf 1.2');
treeNode1 = uiCreateTree(node1, leaf11, leaf12);

node2 = uiCreateNode('Node 2');

node3 = uiCreateNode('Node 3');
leaf31 = uiCreateNode('leaf 3.1');
leaf32 = uiCreateNode('leaf 3.2');
treeNode3 = uiCreateTree(node3, leaf31, leaf32);

root = uiCreateNode('Root');
treeRoot = uiCreateTree(root, treeNode1, node2, treeNode3);

// Display in the console:
uiDumpTree(treeRoot)
--> uiDumpTree(treeRoot)
  |_./ Root
  | |_./ Node 1
  | | |_./ leaf 1.1
  | | |_./ leaf 1.2
  | |_./ Node 2
  | |_./ Node 3
  | | |_./ leaf 3.1
  | | |_./ leaf 3.2

See also

  • uiDisplayTree — Printing an uitree in GUI mode
  • tree_show — Отображает в виде дерева содержимое list, tlist, mlist, cell-массивы или массивы структур, Xcos block
  • xmlDump — Dump a XML object
  • prettyprint — Converts a Scilab object into some corresponding LaTeX, TeX, MathML or HTML strings
  • editvar — Scilab variable editor
Report an issue
<< uiDisplayTree uitree uiEqualsTree >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jun 17 17:55:07 CEST 2024