Mercurial > hg > ltpda
comparison m-toolbox/classes/@data3D/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@data2D(obj, dom, parent, collectedHist); | |
5 | |
6 % Add zunits | |
7 if isa(obj.zunits, 'unit') | |
8 zunitsNode = dom.createElement('zunits'); | |
9 collectedHist = obj.zunits.attachToDom(dom, zunitsNode, collectedHist); | |
10 parent.appendChild(zunitsNode); | |
11 end | |
12 | |
13 % Add z | |
14 zNode = dom.createElement('z'); | |
15 utils.xml.attachNumberToDom(obj.z, dom, zNode) | |
16 parent.appendChild(zNode); | |
17 | |
18 end |