]> SALOME platform Git repositories - modules/superv.git/blob - examples/NewGraphGeomEssai_py.xml
Salome HOME
PAL8521
[modules/superv.git] / examples / NewGraphGeomEssai_py.xml
1 <!DOCTYPE SuperGraph>
2 <supergraph>
3 <dataflow>
4 <info-list>
5 <node>
6 <component-name>?</component-name>
7     <interface-name>?</interface-name>
8     <node-name>aNewDataFlow_1_4_2_1</node-name>
9     <kind>1</kind>
10     <coupled-node>?</coupled-node>
11     <service>
12 <service-name>aNewDataFlow_1_4_2_1</service-name>
13      <inParameter-list>
14 <inParameter>
15 <inParameter-type>double</inParameter-type>
16        <inParameter-name>MakeSphere_1__x1</inParameter-name>      </inParameter>
17       <inParameter>
18 <inParameter-type>double</inParameter-type>
19        <inParameter-name>MakeSphere_1__y1</inParameter-name>      </inParameter>
20       <inParameter>
21 <inParameter-type>double</inParameter-type>
22        <inParameter-name>MakeSphere_1__z1</inParameter-name>      </inParameter>
23       <inParameter>
24 <inParameter-type>double</inParameter-type>
25        <inParameter-name>MakeSphere_1__radius</inParameter-name>      </inParameter>
26       <inParameter>
27 <inParameter-type>double</inParameter-type>
28        <inParameter-name>MakeTranslation_1__x1</inParameter-name>      </inParameter>
29       <inParameter>
30 <inParameter-type>double</inParameter-type>
31        <inParameter-name>MakeTranslation_1__y1</inParameter-name>      </inParameter>
32       <inParameter>
33 <inParameter-type>double</inParameter-type>
34        <inParameter-name>MakeTranslation_1__z1</inParameter-name>      </inParameter>     </inParameter-list>
35      <outParameter-list>
36 <outParameter>
37 <outParameter-type>objref</outParameter-type>
38        <outParameter-name>MakeFuse_1__shape</outParameter-name>      </outParameter>     </outParameter-list>    </service>
39     <DataStream-list/>
40     <PyFunction-list/>
41     <creation-date>25/8/2004 - 16:28:50</creation-date>
42     <lastmodification-date>29/10/2004 - 15:17:44</lastmodification-date>
43     <editor-release>2.0</editor-release>
44     <author>?</author>
45     <container>?</container>
46     <comment>?</comment>
47     <x-position>0</x-position>
48     <y-position>0</y-position>   </node>  </info-list>
49   <node-list>
50 <node>
51 <component-name>?</component-name>
52     <interface-name>?</interface-name>
53     <node-name>gag</node-name>
54     <kind>3</kind>
55     <coupled-node>?</coupled-node>
56     <service>
57 <service-name>gag</service-name>
58      <inParameter-list/>
59      <outParameter-list/>    </service>
60     <DataStream-list/>
61     <PyFunction-list>
62 <PyFunction>
63 <FuncName>gag</FuncName>
64       <PyFunc><![CDATA[from batchmode_geompy import *  ]]></PyFunc>
65       <PyFunc><![CDATA[def gag():   ]]></PyFunc>
66       <PyFunc><![CDATA[    # This is a gag   ]]></PyFunc>
67       <PyFunc><![CDATA[    return 1   ]]></PyFunc>     </PyFunction>    </PyFunction-list>
68     <creation-date>29/10/2004 - 15:17:44</creation-date>
69     <lastmodification-date>29/10/2004 - 15:17:44</lastmodification-date>
70     <editor-release>2.0</editor-release>
71     <author>?</author>
72     <container>?</container>
73     <comment>Compute Node</comment>
74     <x-position>0</x-position>
75     <y-position>123</y-position>   </node>
76    <node>
77 <component-name>?</component-name>
78     <interface-name>?</interface-name>
79     <node-name>MakeCopy_1</node-name>
80     <kind>3</kind>
81     <coupled-node>?</coupled-node>
82     <service>
83 <service-name>MakeCopy_1</service-name>
84      <inParameter-list>
85 <inParameter>
86 <inParameter-type>objref</inParameter-type>
87        <inParameter-name>shape1</inParameter-name>      </inParameter>     </inParameter-list>
88      <outParameter-list>
89 <outParameter>
90 <outParameter-type>objref</outParameter-type>
91        <outParameter-name>shape</outParameter-name>      </outParameter>     </outParameter-list>    </service>
92     <DataStream-list/>
93     <PyFunction-list>
94 <PyFunction>
95 <FuncName>MakeCopy_1</FuncName>
96       <PyFunc><![CDATA[def MakeCopy_1(shape1):  ]]></PyFunc>
97       <PyFunc><![CDATA[    shape=MakeCopy(shape1) ]]></PyFunc>
98       <PyFunc><![CDATA[    return shape ]]></PyFunc>     </PyFunction>    </PyFunction-list>
99     <creation-date>29/10/2004 - 15:17:44</creation-date>
100     <lastmodification-date>29/10/2004 - 15:17:44</lastmodification-date>
101     <editor-release>2.0</editor-release>
102     <author>?</author>
103     <container>?</container>
104     <comment>Compute Node</comment>
105     <x-position>385</x-position>
106     <y-position>3</y-position>   </node>
107    <node>
108 <component-name>?</component-name>
109     <interface-name>?</interface-name>
110     <node-name>MakeSphere_1</node-name>
111     <kind>3</kind>
112     <coupled-node>?</coupled-node>
113     <service>
114 <service-name>MakeSphere_1</service-name>
115      <inParameter-list>
116 <inParameter>
117 <inParameter-type>double</inParameter-type>
118        <inParameter-name>x1</inParameter-name>      </inParameter>
119       <inParameter>
120 <inParameter-type>double</inParameter-type>
121        <inParameter-name>y1</inParameter-name>      </inParameter>
122       <inParameter>
123 <inParameter-type>double</inParameter-type>
124        <inParameter-name>z1</inParameter-name>      </inParameter>
125       <inParameter>
126 <inParameter-type>double</inParameter-type>
127        <inParameter-name>radius</inParameter-name>      </inParameter>     </inParameter-list>
128      <outParameter-list>
129 <outParameter>
130 <outParameter-type>objref</outParameter-type>
131        <outParameter-name>shape</outParameter-name>      </outParameter>     </outParameter-list>    </service>
132     <DataStream-list/>
133     <PyFunction-list>
134 <PyFunction>
135 <FuncName>MakeSphere_1</FuncName>
136       <PyFunc><![CDATA[def MakeSphere_1(x1,y1,z1,radius):   ]]></PyFunc>
137       <PyFunc><![CDATA[    apoint=MakeVertex(x1,y1,z1) ]]></PyFunc>
138       <PyFunc><![CDATA[    shape=MakeSpherePntR(apoint,radius) ]]></PyFunc>
139       <PyFunc><![CDATA[    return shape ]]></PyFunc>     </PyFunction>    </PyFunction-list>
140     <creation-date>29/10/2004 - 15:17:44</creation-date>
141     <lastmodification-date>29/10/2004 - 15:17:44</lastmodification-date>
142     <editor-release>2.0</editor-release>
143     <author>?</author>
144     <container>?</container>
145     <comment>Compute Node</comment>
146     <x-position>193</x-position>
147     <y-position>67</y-position>   </node>
148    <node>
149 <component-name>?</component-name>
150     <interface-name>?</interface-name>
151     <node-name>MakeTranslation_1</node-name>
152     <kind>3</kind>
153     <coupled-node>?</coupled-node>
154     <service>
155 <service-name>MakeTranslation_1</service-name>
156      <inParameter-list>
157 <inParameter>
158 <inParameter-type>objref</inParameter-type>
159        <inParameter-name>shape1</inParameter-name>      </inParameter>
160       <inParameter>
161 <inParameter-type>double</inParameter-type>
162        <inParameter-name>x1</inParameter-name>      </inParameter>
163       <inParameter>
164 <inParameter-type>double</inParameter-type>
165        <inParameter-name>y1</inParameter-name>      </inParameter>
166       <inParameter>
167 <inParameter-type>double</inParameter-type>
168        <inParameter-name>z1</inParameter-name>      </inParameter>     </inParameter-list>
169      <outParameter-list>
170 <outParameter>
171 <outParameter-type>objref</outParameter-type>
172        <outParameter-name>shape</outParameter-name>      </outParameter>     </outParameter-list>    </service>
173     <DataStream-list/>
174     <PyFunction-list>
175 <PyFunction>
176 <FuncName>MakeTranslation_1</FuncName>
177       <PyFunc><![CDATA[def MakeTranslation_1(shape1,x1,y1,z1):   ]]></PyFunc>
178       <PyFunc><![CDATA[    shape = MakeTranslation(shape1,x1,y1,z1)  ]]></PyFunc>
179       <PyFunc><![CDATA[    return shape  ]]></PyFunc>     </PyFunction>    </PyFunction-list>
180     <creation-date>29/10/2004 - 15:17:44</creation-date>
181     <lastmodification-date>29/10/2004 - 15:17:44</lastmodification-date>
182     <editor-release>2.0</editor-release>
183     <author>?</author>
184     <container>?</container>
185     <comment>Compute Node</comment>
186     <x-position>388</x-position>
187     <y-position>146</y-position>   </node>
188    <node>
189 <component-name>?</component-name>
190     <interface-name>?</interface-name>
191     <node-name>MakeFuse_1</node-name>
192     <kind>3</kind>
193     <coupled-node>?</coupled-node>
194     <service>
195 <service-name>MakeFuse_1</service-name>
196      <inParameter-list>
197 <inParameter>
198 <inParameter-type>objref</inParameter-type>
199        <inParameter-name>shape1</inParameter-name>      </inParameter>
200       <inParameter>
201 <inParameter-type>objref</inParameter-type>
202        <inParameter-name>shape2</inParameter-name>      </inParameter>     </inParameter-list>
203      <outParameter-list>
204 <outParameter>
205 <outParameter-type>objref</outParameter-type>
206        <outParameter-name>shape</outParameter-name>      </outParameter>     </outParameter-list>    </service>
207     <DataStream-list/>
208     <PyFunction-list>
209 <PyFunction>
210 <FuncName>MakeFuse_1</FuncName>
211       <PyFunc><![CDATA[def MakeFuse_1(shape1,shape2):           ]]></PyFunc>
212       <PyFunc><![CDATA[    # fuse operation 3          ]]></PyFunc>
213       <PyFunc><![CDATA[    shape = MakeBoolean(shape1,shape2,3) ]]></PyFunc>
214       <PyFunc><![CDATA[    from SALOME_NamingServicePy import SALOME_NamingServicePy_i ]]></PyFunc>
215       <PyFunc><![CDATA[    myNamingService = SALOME_NamingServicePy_i(orb) ]]></PyFunc>
216       <PyFunc><![CDATA[    aSession = myNamingService.Resolve('/Kernel/Session') ]]></PyFunc>
217       <PyFunc><![CDATA[    aStudyId = aSession.GetActiveStudyId() ]]></PyFunc>
218       <PyFunc><![CDATA[    myStudyManager = myNamingService.Resolve('/myStudyManager') ]]></PyFunc>
219       <PyFunc><![CDATA[    aStudy = myStudyManager.GetStudyByID(aStudyId) ]]></PyFunc>
220       <PyFunc><![CDATA[    aSObject = geom.AddInStudy(aStudy, shape, "shape", None) ]]></PyFunc>
221       <PyFunc><![CDATA[    return shape ]]></PyFunc>     </PyFunction>    </PyFunction-list>
222     <creation-date>29/10/2004 - 15:17:44</creation-date>
223     <lastmodification-date>29/10/2004 - 15:17:44</lastmodification-date>
224     <editor-release>2.0</editor-release>
225     <author>?</author>
226     <container>?</container>
227     <comment>Compute Node</comment>
228     <x-position>618</x-position>
229     <y-position>64</y-position>   </node>  </node-list>
230   <link-list>
231 <link>
232 <fromnode-name>gag</fromnode-name>
233     <fromserviceparameter-name>Gate</fromserviceparameter-name>
234     <tonode-name>MakeSphere_1</tonode-name>
235     <toserviceparameter-name>Gate</toserviceparameter-name>
236     <coord-list/>   </link>
237    <link>
238 <fromnode-name>MakeCopy_1</fromnode-name>
239     <fromserviceparameter-name>shape</fromserviceparameter-name>
240     <tonode-name>MakeFuse_1</tonode-name>
241     <toserviceparameter-name>shape1</toserviceparameter-name>
242     <coord-list/>   </link>
243    <link>
244 <fromnode-name>MakeSphere_1</fromnode-name>
245     <fromserviceparameter-name>shape</fromserviceparameter-name>
246     <tonode-name>MakeCopy_1</tonode-name>
247     <toserviceparameter-name>shape1</toserviceparameter-name>
248     <coord-list/>   </link>
249    <link>
250 <fromnode-name>MakeSphere_1</fromnode-name>
251     <fromserviceparameter-name>shape</fromserviceparameter-name>
252     <tonode-name>MakeTranslation_1</tonode-name>
253     <toserviceparameter-name>shape1</toserviceparameter-name>
254     <coord-list/>   </link>
255    <link>
256 <fromnode-name>MakeTranslation_1</fromnode-name>
257     <fromserviceparameter-name>shape</fromserviceparameter-name>
258     <tonode-name>MakeFuse_1</tonode-name>
259     <toserviceparameter-name>shape2</toserviceparameter-name>
260     <coord-list/>   </link>  </link-list>
261   <data-list>
262 <data>
263 <fromnode-name>aNewDataFlow_1_4_2_1</fromnode-name>
264     <fromserviceparameter-name>MakeSphere_1__x1</fromserviceparameter-name>
265     <tonode-name>MakeSphere_1</tonode-name>
266     <toserviceparameter-name>x1</toserviceparameter-name>
267     <data-value>
268 <value-type>7</value-type>
269      <value>0</value>    </data-value>
270     <coord-list/>   </data>
271    <data>
272 <fromnode-name>aNewDataFlow_1_4_2_1</fromnode-name>
273     <fromserviceparameter-name>MakeSphere_1__y1</fromserviceparameter-name>
274     <tonode-name>MakeSphere_1</tonode-name>
275     <toserviceparameter-name>y1</toserviceparameter-name>
276     <data-value>
277 <value-type>7</value-type>
278      <value>0</value>    </data-value>
279     <coord-list/>   </data>
280    <data>
281 <fromnode-name>aNewDataFlow_1_4_2_1</fromnode-name>
282     <fromserviceparameter-name>MakeSphere_1__z1</fromserviceparameter-name>
283     <tonode-name>MakeSphere_1</tonode-name>
284     <toserviceparameter-name>z1</toserviceparameter-name>
285     <data-value>
286 <value-type>7</value-type>
287      <value>0</value>    </data-value>
288     <coord-list/>   </data>
289    <data>
290 <fromnode-name>aNewDataFlow_1_4_2_1</fromnode-name>
291     <fromserviceparameter-name>MakeSphere_1__radius</fromserviceparameter-name>
292     <tonode-name>MakeSphere_1</tonode-name>
293     <toserviceparameter-name>radius</toserviceparameter-name>
294     <data-value>
295 <value-type>7</value-type>
296      <value>50</value>    </data-value>
297     <coord-list/>   </data>
298    <data>
299 <fromnode-name>aNewDataFlow_1_4_2_1</fromnode-name>
300     <fromserviceparameter-name>MakeTranslation_1__x1</fromserviceparameter-name>
301     <tonode-name>MakeTranslation_1</tonode-name>
302     <toserviceparameter-name>x1</toserviceparameter-name>
303     <data-value>
304 <value-type>7</value-type>
305      <value>80</value>    </data-value>
306     <coord-list/>   </data>
307    <data>
308 <fromnode-name>aNewDataFlow_1_4_2_1</fromnode-name>
309     <fromserviceparameter-name>MakeTranslation_1__y1</fromserviceparameter-name>
310     <tonode-name>MakeTranslation_1</tonode-name>
311     <toserviceparameter-name>y1</toserviceparameter-name>
312     <data-value>
313 <value-type>7</value-type>
314      <value>0</value>    </data-value>
315     <coord-list/>   </data>
316    <data>
317 <fromnode-name>aNewDataFlow_1_4_2_1</fromnode-name>
318     <fromserviceparameter-name>MakeTranslation_1__z1</fromserviceparameter-name>
319     <tonode-name>MakeTranslation_1</tonode-name>
320     <toserviceparameter-name>z1</toserviceparameter-name>
321     <data-value>
322 <value-type>7</value-type>
323      <value>0</value>    </data-value>
324     <coord-list/>   </data>  </data-list> </dataflow></supergraph>