Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский
Scilabヘルプ >> GUI > Tree > uiDumpTree

uiDumpTree

コンソールでツリーを印刷 (テキストモード)

呼び出し手順

uiDumpTree(tree[,b])

入力パラメータ

tree

ツリー.

b(optional)

ツリーの各ノードの機能を表示します. bのデフォルト値は'%F'.

説明

ツリーをコンソール(テキストモード)に表示.

// ツリー作成前にノード(サブツリー)を作成する必要があります.
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

参照

  • uiDisplayTree — GUIモードでツリーを印刷
  • tree_show — Displays a tree view of a list, tlist, mlist, cell or structure array, Xcos block
  • xmlDump — XMLオブジェクトをダンプする
  • prettyprint — Converts a Scilab object into some corresponding LaTeX, TeX, MathML or HTML strings
  • editvar — Scilab variable editor
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:53:23 CET 2020