comparison m-toolbox/classes/@data2D/attachToDom.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1
2 function collectedHist = attachToDom(obj, dom, parent, collectedHist)
3
4 collectedHist = attachToDom@ltpda_data(obj, dom, parent, collectedHist);
5
6 % Add xunits
7 if isa(obj.xunits, 'unit')
8 xunitsNode = dom.createElement('xunits');
9 collectedHist = obj.xunits.attachToDom(dom, xunitsNode, collectedHist);
10 parent.appendChild(xunitsNode);
11 end
12
13 % Add x
14 xNode = dom.createElement('x');
15 utils.xml.attachNumberToDom(obj.x, dom, xNode)
16 parent.appendChild(xNode);
17
18 % Add dx
19 dxNode = dom.createElement('dx');
20 utils.xml.attachNumberToDom(obj.dx, dom, dxNode)
21 parent.appendChild(dxNode);
22
23 end