comparison m-toolbox/classes/@data3D/fromDom.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 obj = fromDom(obj, node, inhists)
3
4 %%%%%%%%%% Call super-class
5
6 fromDom@data2D(obj, node, inhists);
7
8 %%%%%%%%%% Get properties from the node attributes
9
10 %%%%%%%%%% Get properties from the child nodes
11
12 % Get zunits
13 childNode = utils.xml.getChildByName(node, 'zunits');
14 if ~isempty(childNode)
15 obj.zunits = unit(childNode, inhists);
16 end
17
18 % Get z
19 childNode = utils.xml.getChildByName(node, 'z');
20 if ~isempty(childNode)
21 obj.z = utils.xml.getNumber(childNode);
22 end
23
24 end