3 % array of descriptions
for all leafs in the tree.
6 function node = create_tpart_node(
this, t_part_map, initvalues)
7 %
function node = create_tpart_node(
this, t_part_map, initvalues)
11 for i = 1:length(initvalues)
12 tslice = get_coords(t_part_map, t_part_map.leaf_enum(i));
13 bary = barycenter(t_part_map, t_part_map.leaf_enum(i));
14 for j = 1:length(initvalues{i})
15 if isempty(initvalues{i}(j).tslice)
16 initvalues{i}(j).tslice = tslice;
17 initvalues{i}(j).t_bary = bary;
22 node = [initvalues{:}];
25 function node = create_idmap_node(
this, id_map, initvalues)
26 %
function node = create_idmap_node(
this, id_map, initvalues)
31 for i = 1:length(initvalues)
32 for j = 1:length(initvalues{i})
33 if isempty(initvalues{i}(j).
id)
38 node = [initvalues{:}];
41 function node = create_ppart_node(
this, p_part_map, initvalues)
42 %
function node = create_ppart_node(
this, p_part_map, initvalues)
46 for i = 1:length(initvalues)
47 mu_cube = get_coords(p_part_map, p_part_map.leaf_enum(i));
48 mu_bary = barycenter(p_part_map, p_part_map.leaf_enum(i));
49 for j = 1:length(initvalues{i})
50 if isempty(initvalues{i}(j).mu_cube)
51 initvalues{i}(j).mu_cube = mu_cube;
52 initvalues{i}(j).mu_bary = mu_bary;
57 node = [initvalues{:}];
60 function node = create_leaf_node(
this, arg_node, basepath, mu_cube, tslice)
61 %
function node = create_leaf_node(
this, arg_node, basepath, mu_cube, tslice)
66 node = struct('tslice', [], 't_bary', [], '
id', [], 'mu_cube', [], 'mu_bary', [], 'basepath', basepath);
Data Tree element which can be filtered by ids
virtual function DataTree.ILeafNode node = create_leaf_node(DataTree.ILeafNode arg_node, basepath, mu_cube, tslice)
is called on leaf elements of a DataTree and returns a new leaf out of it.
interface for a class used to create a new (sub-)tree from an old one with the DataTree.INode.creat...
virtual function DataTree.PpartNode node = create_tpart_node(t_part_map, initvalues)
is called on DataTree.PpartNode elements of a DataTree and returns a new p-part node out of it...
virtual function DataTree.IdMapNode node = create_idmap_node(id_map, initvalues)
is called on DataTree.IdMapNode elements of a DataTree and returns a new ID mapped node out of it...
static function flatca = flatten_cell_array(ca)
flattens a cell array, i.e. returns a cell without cell entries which are cell arrays by itself...
virtual function DataTree.PpartNode node = create_ppart_node(p_part_map, initvalues)
is called on DataTree.PpartNode elements of a DataTree and returns a new p-part node out of it...