Salome HOME
Merge Python 3 porting.
[modules/yacs.git] / src / yacsloader / samples / study1.xml
1 <!--
2   Copyright (C) 2006-2016  CEA/DEN, EDF R&D
3
4   This library is free software; you can redistribute it and/or
5   modify it under the terms of the GNU Lesser General Public
6   License as published by the Free Software Foundation; either
7   version 2.1 of the License, or (at your option) any later version.
8
9   This library is distributed in the hope that it will be useful,
10   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   Lesser General Public License for more details.
13
14   You should have received a copy of the GNU Lesser General Public
15   License along with this library; if not, write to the Free Software
16   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17
18   See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19
20 -->
21 <proc>
22     <!--types -->
23     <objref name="GEOM/GEOM_Object"/>
24     <sequence name="dblevec" content="double"/>
25     <struct name="s1" >
26       <member name="s" type="double"/>
27     </struct>
28
29
30     <!--nodes -->
31     <datanode name="s" kind="study" >
32       <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:2:2"/>
33       <parameter name="c" type="bool" ref="/Geometry/Box_1"/>
34     </datanode>
35
36     <inline name="node0" >
37       <script>
38         <code>import GEOM</code>
39         <code>p1=p1._narrow(GEOM.GEOM_Object)</code>
40         <code>print(p1)</code>
41       </script>
42       <inport name="p1" type="GEOM/GEOM_Object"/>
43       <outport name="p1" type="GEOM/GEOM_Object"/>
44     </inline>
45
46     <outnode name="os" kind="study" ref="stud1.hdf" >
47       <parameter name="b" type="GEOM/GEOM_Object" ref="/Save/x"/>
48       <!--       <parameter name="c" type="GEOM/GEOM_Object" ref="/Geometry/Box_2"/> 
49       <parameter name="b" type="GEOM/GEOM_Object" ref="0:1:1:6"/>
50       -->
51     </outnode>
52     <!-- datalink -->
53     <datalink>
54         <fromnode>s</fromnode><fromport>b</fromport>
55         <tonode>node0</tonode> <toport>p1</toport>
56     </datalink>
57     <datalink>
58         <fromnode>node0</fromnode><fromport>p1</fromport>
59         <tonode>os</tonode> <toport>b</toport>
60     </datalink>
61
62 </proc>