5 <component-name>?</component-name>
6 <interface-name>?</interface-name>
7 <node-name>aNewDataFlow</node-name>
9 <coupled-node>?</coupled-node>
11 <service-name>aNewDataFlow</service-name>
14 <inParameter-type>long</inParameter-type>
15 <inParameter-name>Init\index</inParameter-name> </inParameter>
17 <inParameter-type>long</inParameter-type>
18 <inParameter-name>Init\min</inParameter-name> </inParameter>
20 <inParameter-type>long</inParameter-type>
21 <inParameter-name>Init\max</inParameter-name> </inParameter>
23 <inParameter-type>double</inParameter-type>
24 <inParameter-name>Init\x1</inParameter-name> </inParameter> </inParameter-list>
27 <outParameter-type>long</outParameter-type>
28 <outParameter-name>EndOfInit\index</outParameter-name> </outParameter>
30 <outParameter-type>long</outParameter-type>
31 <outParameter-name>EndOfInit\min</outParameter-name> </outParameter>
33 <outParameter-type>long</outParameter-type>
34 <outParameter-name>EndOfInit\max</outParameter-name> </outParameter>
36 <outParameter-type>objref</outParameter-type>
37 <outParameter-name>EndOfInit\aVisu</outParameter-name> </outParameter>
39 <outParameter-type>objref</outParameter-type>
40 <outParameter-name>EndOfInit\aView</outParameter-name> </outParameter>
42 <outParameter-type>objref</outParameter-type>
43 <outParameter-name>EndOfInit\aResult</outParameter-name> </outParameter>
45 <outParameter-type>double</outParameter-type>
46 <outParameter-name>EndOfInit\x1</outParameter-name> </outParameter> </outParameter-list> </service>
49 <creation-date>13/11/2003 - 11:15:53</creation-date>
50 <lastmodification-date>19/1/2004 - 15:33:34</lastmodification-date>
51 <editor-release>1.05</editor-release>
53 <container>?</container>
55 <x-position>0</x-position>
56 <y-position>0</y-position> </node> </info-list>
59 <component-name>?</component-name>
60 <interface-name>?</interface-name>
61 <node-name>InitDisplay</node-name>
63 <coupled-node>?</coupled-node>
65 <service-name>InitDisplay</service-name>
69 <outParameter-type>objref</outParameter-type>
70 <outParameter-name>aVisu</outParameter-name> </outParameter>
72 <outParameter-type>objref</outParameter-type>
73 <outParameter-name>aView</outParameter-name> </outParameter>
75 <outParameter-type>objref</outParameter-type>
76 <outParameter-name>myResult</outParameter-name> </outParameter> </outParameter-list> </service>
80 <FuncName>InitDisplay</FuncName>
81 <PyFunc><![CDATA[import os ]]></PyFunc>
82 <PyFunc><![CDATA[import time ]]></PyFunc>
83 <PyFunc><![CDATA[from LifeCycleCORBA import * ]]></PyFunc>
84 <PyFunc><![CDATA[from SALOME_NamingServicePy import * ]]></PyFunc>
85 <PyFunc><![CDATA[import SALOMEDS ]]></PyFunc>
86 <PyFunc><![CDATA[from VISU import * ]]></PyFunc>
87 <PyFunc><![CDATA[def InitDisplay(): ]]></PyFunc>
88 <PyFunc><![CDATA[ # --- initialize the ORB ]]></PyFunc>
89 <PyFunc><![CDATA[ orb = CORBA.ORB_init([], CORBA.ORB_ID) ]]></PyFunc>
90 <PyFunc><![CDATA[ # --- create a LifeCycleCORBA instance ]]></PyFunc>
91 <PyFunc><![CDATA[ lcc = LifeCycleCORBA(orb) ]]></PyFunc>
92 <PyFunc><![CDATA[ # --- create a naming service instance ]]></PyFunc>
93 <PyFunc><![CDATA[ naming_service = SALOME_NamingServicePy_i(orb) ]]></PyFunc>
94 <PyFunc><![CDATA[ # --- get Study Manager reference ]]></PyFunc>
95 <PyFunc><![CDATA[ obj = naming_service.Resolve('myStudyManager') ]]></PyFunc>
96 <PyFunc><![CDATA[ StudyManager = obj._narrow(SALOMEDS.StudyManager) ]]></PyFunc>
97 <PyFunc><![CDATA[ # --- load visu component ]]></PyFunc>
98 <PyFunc><![CDATA[ aVisu = lcc.FindOrLoadComponent("FactoryServer","VISU") ]]></PyFunc>
99 <PyFunc><![CDATA[ aStudy = StudyManager.GetStudyByID(1) ]]></PyFunc>
100 <PyFunc><![CDATA[ aVisu.SetCurrentStudy(aStudy) ]]></PyFunc>
101 <PyFunc><![CDATA[ print "InitDisplay --> aVisu ", aVisu ]]></PyFunc>
102 <PyFunc><![CDATA[ time.sleep(2) ]]></PyFunc>
103 <PyFunc><![CDATA[ aViewManager=aVisu.GetViewManager() ]]></PyFunc>
104 <PyFunc><![CDATA[ print "InitDisplay --> aViewManager ", aViewManager ]]></PyFunc>
105 <PyFunc><![CDATA[ #time.sleep(2) ]]></PyFunc>
106 <PyFunc><![CDATA[ #aView=aViewManager.GetCurrentView() ]]></PyFunc>
107 <PyFunc><![CDATA[ aView=aViewManager.Create3DView() ]]></PyFunc>
108 <PyFunc><![CDATA[ print "InitDisplay --> aView ", aView ]]></PyFunc>
109 <PyFunc><![CDATA[ #time.sleep(2) ]]></PyFunc>
110 <PyFunc><![CDATA[ medFile = "TimeStamps.med" ]]></PyFunc>
111 <PyFunc><![CDATA[ medFile = os.getenv('KERNEL_ROOT_DIR') + '/examples/' + medFile ]]></PyFunc>
112 <PyFunc><![CDATA[ myResult = aVisu.ImportFile(medFile) ]]></PyFunc>
113 <PyFunc><![CDATA[ print "InitDisplay --> myResult ", myResult ]]></PyFunc>
114 <PyFunc><![CDATA[ return aVisu,aView,myResult ]]></PyFunc>
115 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
116 <creation-date>19/1/2004 - 15:33:34</creation-date>
117 <lastmodification-date>19/1/2004 - 15:33:34</lastmodification-date>
118 <editor-release>1.05</editor-release>
120 <container>?</container>
121 <comment>Compute Node</comment>
122 <x-position>0</x-position>
123 <y-position>46</y-position> </node>
125 <component-name>?</component-name>
126 <interface-name>?</interface-name>
127 <node-name>Init</node-name>
129 <coupled-node>EndOfInit</coupled-node>
131 <service-name>Init</service-name>
134 <inParameter-type>long</inParameter-type>
135 <inParameter-name>index</inParameter-name> </inParameter>
137 <inParameter-type>long</inParameter-type>
138 <inParameter-name>min</inParameter-name> </inParameter>
140 <inParameter-type>long</inParameter-type>
141 <inParameter-name>max</inParameter-name> </inParameter>
143 <inParameter-type>objref</inParameter-type>
144 <inParameter-name>aVisu</inParameter-name> </inParameter>
146 <inParameter-type>objref</inParameter-type>
147 <inParameter-name>aView</inParameter-name> </inParameter>
149 <inParameter-type>objref</inParameter-type>
150 <inParameter-name>aResult</inParameter-name> </inParameter>
152 <inParameter-type>double</inParameter-type>
153 <inParameter-name>x1</inParameter-name> </inParameter> </inParameter-list>
156 <outParameter-type>long</outParameter-type>
157 <outParameter-name>index</outParameter-name> </outParameter>
159 <outParameter-type>long</outParameter-type>
160 <outParameter-name>min</outParameter-name> </outParameter>
162 <outParameter-type>long</outParameter-type>
163 <outParameter-name>max</outParameter-name> </outParameter>
165 <outParameter-type>objref</outParameter-type>
166 <outParameter-name>aVisu</outParameter-name> </outParameter>
168 <outParameter-type>objref</outParameter-type>
169 <outParameter-name>aView</outParameter-name> </outParameter>
171 <outParameter-type>objref</outParameter-type>
172 <outParameter-name>aResult</outParameter-name> </outParameter>
174 <outParameter-type>double</outParameter-type>
175 <outParameter-name>x1</outParameter-name> </outParameter> </outParameter-list> </service>
179 <FuncName>Init</FuncName>
180 <PyFunc><![CDATA[def Init(index,min,max,aVisu,aView,myResult,x1): ]]></PyFunc>
181 <PyFunc><![CDATA[ if max >= min : ]]></PyFunc>
182 <PyFunc><![CDATA[ index = min ]]></PyFunc>
183 <PyFunc><![CDATA[ else : ]]></PyFunc>
184 <PyFunc><![CDATA[ index = max ]]></PyFunc>
185 <PyFunc><![CDATA[ print "---- Init ",index,min,max,aVisu,aView,myResult,x1 ]]></PyFunc>
186 <PyFunc><![CDATA[ return index,min,max,aVisu,aView,myResult,x1 ]]></PyFunc> </PyFunction>
188 <FuncName>More</FuncName>
189 <PyFunc><![CDATA[def More(index,min,max,aVisu,aView,myResult,x1): ]]></PyFunc>
190 <PyFunc><![CDATA[ if max >= index : ]]></PyFunc>
191 <PyFunc><![CDATA[ DoLoop = 1 ]]></PyFunc>
192 <PyFunc><![CDATA[ else : ]]></PyFunc>
193 <PyFunc><![CDATA[ DoLoop = 0 ]]></PyFunc>
194 <PyFunc><![CDATA[ print "---- More",index,min,max,aVisu,aView,myResult,x1 ]]></PyFunc>
195 <PyFunc><![CDATA[ return DoLoop,index,min,max,aVisu,aView,myResult,x1 ]]></PyFunc> </PyFunction>
197 <FuncName>Next</FuncName>
198 <PyFunc><![CDATA[def Next(index,min,max,aVisu,aView,myResult,x1): ]]></PyFunc>
199 <PyFunc><![CDATA[ index = index + 1 ]]></PyFunc>
200 <PyFunc><![CDATA[ x1=x1+1.0 ]]></PyFunc>
201 <PyFunc><![CDATA[ print "---- Next",index,min,max,aVisu,aView,myResult,x1 ]]></PyFunc>
202 <PyFunc><![CDATA[ return index,min,max,aVisu,aView,myResult,x1 ]]></PyFunc> </PyFunction> </PyFunction-list>
203 <creation-date>19/1/2004 - 15:33:34</creation-date>
204 <lastmodification-date>19/1/2004 - 15:33:34</lastmodification-date>
205 <editor-release>1.05</editor-release>
207 <container>?</container>
209 <x-position>190</x-position>
210 <y-position>4</y-position> </node>
212 <component-name>?</component-name>
213 <interface-name>?</interface-name>
214 <node-name>EndOfInit</node-name>
216 <coupled-node>Init</coupled-node>
218 <service-name>EndOfInit</service-name>
221 <inParameter-type>long</inParameter-type>
222 <inParameter-name>index</inParameter-name> </inParameter>
224 <inParameter-type>long</inParameter-type>
225 <inParameter-name>min</inParameter-name> </inParameter>
227 <inParameter-type>long</inParameter-type>
228 <inParameter-name>max</inParameter-name> </inParameter>
230 <inParameter-type>objref</inParameter-type>
231 <inParameter-name>aVisu</inParameter-name> </inParameter>
233 <inParameter-type>objref</inParameter-type>
234 <inParameter-name>aView</inParameter-name> </inParameter>
236 <inParameter-type>objref</inParameter-type>
237 <inParameter-name>aResult</inParameter-name> </inParameter>
239 <inParameter-type>double</inParameter-type>
240 <inParameter-name>x1</inParameter-name> </inParameter> </inParameter-list>
243 <outParameter-type>long</outParameter-type>
244 <outParameter-name>index</outParameter-name> </outParameter>
246 <outParameter-type>long</outParameter-type>
247 <outParameter-name>min</outParameter-name> </outParameter>
249 <outParameter-type>long</outParameter-type>
250 <outParameter-name>max</outParameter-name> </outParameter>
252 <outParameter-type>objref</outParameter-type>
253 <outParameter-name>aVisu</outParameter-name> </outParameter>
255 <outParameter-type>objref</outParameter-type>
256 <outParameter-name>aView</outParameter-name> </outParameter>
258 <outParameter-type>objref</outParameter-type>
259 <outParameter-name>aResult</outParameter-name> </outParameter>
261 <outParameter-type>double</outParameter-type>
262 <outParameter-name>x1</outParameter-name> </outParameter> </outParameter-list> </service>
265 <PyFunction/> </PyFunction-list>
266 <creation-date>19/1/2004 - 15:33:34</creation-date>
267 <lastmodification-date>19/1/2004 - 15:33:34</lastmodification-date>
268 <editor-release>1.05</editor-release>
270 <container>?</container>
272 <x-position>553</x-position>
273 <y-position>5</y-position> </node>
275 <component-name>?</component-name>
276 <interface-name>?</interface-name>
277 <node-name>DisplayVitesse</node-name>
279 <coupled-node>?</coupled-node>
281 <service-name>DisplayVitesse</service-name>
284 <inParameter-type>string</inParameter-type>
285 <inParameter-name>index</inParameter-name> </inParameter>
287 <inParameter-type>objref</inParameter-type>
288 <inParameter-name>aVisu</inParameter-name> </inParameter>
290 <inParameter-type>objref</inParameter-type>
291 <inParameter-name>aView</inParameter-name> </inParameter>
293 <inParameter-type>objref</inParameter-type>
294 <inParameter-name>aResult</inParameter-name> </inParameter>
296 <inParameter-type>double</inParameter-type>
297 <inParameter-name>x1</inParameter-name> </inParameter> </inParameter-list>
300 <outParameter-type>objref</outParameter-type>
301 <outParameter-name>theResult</outParameter-name> </outParameter> </outParameter-list> </service>
305 <FuncName>DisplayVitesse</FuncName>
306 <PyFunc><![CDATA[import VISU ]]></PyFunc>
307 <PyFunc><![CDATA[import os ]]></PyFunc>
308 <PyFunc><![CDATA[import time ]]></PyFunc>
309 <PyFunc><![CDATA[def DisplayVitesse(index,aVisu,aView,aResult,x1): ]]></PyFunc>
310 <PyFunc><![CDATA[ print "----- Display 1 index = ", index,aVisu,aView,aResult,x1 ]]></PyFunc>
311 <PyFunc><![CDATA[ aMeshName ="dom" ]]></PyFunc>
312 <PyFunc><![CDATA[ myFieldName = "vitesse" ]]></PyFunc>
313 <PyFunc><![CDATA[ anEntity = VISU.NODE ]]></PyFunc>
314 <PyFunc><![CDATA[ aMesh = aVisu.MeshOnEntity(aResult, aMeshName, anEntity) ]]></PyFunc>
315 <PyFunc><![CDATA[ print "----- Display 2 ", aMesh ]]></PyFunc>
316 <PyFunc><![CDATA[ aScalarMap=aVisu.ScalarMapOnField(aResult,aMeshName,anEntity,myFieldName,x1) ]]></PyFunc>
317 <PyFunc><![CDATA[ print "----- Display 4" ]]></PyFunc>
318 <PyFunc><![CDATA[ if aScalarMap is not None: ]]></PyFunc>
319 <PyFunc><![CDATA[ aScalarMap.SetScaling(VISU.LINEAR) ]]></PyFunc>
320 <PyFunc><![CDATA[ else: ]]></PyFunc>
321 <PyFunc><![CDATA[ print "Null scalar map is created" ]]></PyFunc>
322 <PyFunc><![CDATA[ print "----- Display 5" ]]></PyFunc>
323 <PyFunc><![CDATA[ aView.DisplayOnly(aScalarMap) ]]></PyFunc>
324 <PyFunc><![CDATA[ aView.FitAll() ]]></PyFunc>
325 <PyFunc><![CDATA[ aView.Update() ]]></PyFunc>
326 <PyFunc><![CDATA[ print "----- Display 6" ]]></PyFunc>
327 <PyFunc><![CDATA[ theResult=aResult ]]></PyFunc>
328 <PyFunc><![CDATA[ #time.sleep(2) ]]></PyFunc>
329 <PyFunc><![CDATA[ return theResult ]]></PyFunc>
330 <PyFunc><![CDATA[?]]></PyFunc> </PyFunction> </PyFunction-list>
331 <creation-date>19/1/2004 - 15:33:34</creation-date>
332 <lastmodification-date>19/1/2004 - 15:33:34</lastmodification-date>
333 <editor-release>1.05</editor-release>
335 <container>?</container>
336 <comment>Compute Node</comment>
337 <x-position>374</x-position>
338 <y-position>16</y-position> </node> </node-list>
341 <fromnode-name>InitDisplay</fromnode-name>
342 <fromserviceparameter-name>aVisu</fromserviceparameter-name>
343 <tonode-name>Init</tonode-name>
344 <toserviceparameter-name>aVisu</toserviceparameter-name>
345 <coord-list/> </link>
347 <fromnode-name>InitDisplay</fromnode-name>
348 <fromserviceparameter-name>aView</fromserviceparameter-name>
349 <tonode-name>Init</tonode-name>
350 <toserviceparameter-name>aView</toserviceparameter-name>
351 <coord-list/> </link>
353 <fromnode-name>InitDisplay</fromnode-name>
354 <fromserviceparameter-name>myResult</fromserviceparameter-name>
355 <tonode-name>Init</tonode-name>
356 <toserviceparameter-name>aResult</toserviceparameter-name>
357 <coord-list/> </link>
359 <fromnode-name>Init</fromnode-name>
360 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
361 <tonode-name>EndOfInit</tonode-name>
362 <toserviceparameter-name>DoLoop</toserviceparameter-name>
363 <coord-list/> </link>
365 <fromnode-name>Init</fromnode-name>
366 <fromserviceparameter-name>index</fromserviceparameter-name>
367 <tonode-name>EndOfInit</tonode-name>
368 <toserviceparameter-name>index</toserviceparameter-name>
369 <coord-list/> </link>
371 <fromnode-name>Init</fromnode-name>
372 <fromserviceparameter-name>index</fromserviceparameter-name>
373 <tonode-name>DisplayVitesse</tonode-name>
374 <toserviceparameter-name>index</toserviceparameter-name>
381 <y>38</y> </coord> </coord-list> </link>
383 <fromnode-name>Init</fromnode-name>
384 <fromserviceparameter-name>min</fromserviceparameter-name>
385 <tonode-name>EndOfInit</tonode-name>
386 <toserviceparameter-name>min</toserviceparameter-name>
387 <coord-list/> </link>
389 <fromnode-name>Init</fromnode-name>
390 <fromserviceparameter-name>max</fromserviceparameter-name>
391 <tonode-name>EndOfInit</tonode-name>
392 <toserviceparameter-name>max</toserviceparameter-name>
393 <coord-list/> </link>
395 <fromnode-name>Init</fromnode-name>
396 <fromserviceparameter-name>aVisu</fromserviceparameter-name>
397 <tonode-name>EndOfInit</tonode-name>
398 <toserviceparameter-name>aVisu</toserviceparameter-name>
399 <coord-list/> </link>
401 <fromnode-name>Init</fromnode-name>
402 <fromserviceparameter-name>aVisu</fromserviceparameter-name>
403 <tonode-name>DisplayVitesse</tonode-name>
404 <toserviceparameter-name>aVisu</toserviceparameter-name>
405 <coord-list/> </link>
407 <fromnode-name>Init</fromnode-name>
408 <fromserviceparameter-name>aView</fromserviceparameter-name>
409 <tonode-name>EndOfInit</tonode-name>
410 <toserviceparameter-name>aView</toserviceparameter-name>
411 <coord-list/> </link>
413 <fromnode-name>Init</fromnode-name>
414 <fromserviceparameter-name>aView</fromserviceparameter-name>
415 <tonode-name>DisplayVitesse</tonode-name>
416 <toserviceparameter-name>aView</toserviceparameter-name>
417 <coord-list/> </link>
419 <fromnode-name>Init</fromnode-name>
420 <fromserviceparameter-name>aResult</fromserviceparameter-name>
421 <tonode-name>DisplayVitesse</tonode-name>
422 <toserviceparameter-name>aResult</toserviceparameter-name>
423 <coord-list/> </link>
425 <fromnode-name>Init</fromnode-name>
426 <fromserviceparameter-name>x1</fromserviceparameter-name>
427 <tonode-name>EndOfInit</tonode-name>
428 <toserviceparameter-name>x1</toserviceparameter-name>
429 <coord-list/> </link>
431 <fromnode-name>Init</fromnode-name>
432 <fromserviceparameter-name>x1</fromserviceparameter-name>
433 <tonode-name>DisplayVitesse</tonode-name>
434 <toserviceparameter-name>x1</toserviceparameter-name>
435 <coord-list/> </link>
437 <fromnode-name>EndOfInit</fromnode-name>
438 <fromserviceparameter-name>DoLoop</fromserviceparameter-name>
439 <tonode-name>Init</tonode-name>
440 <toserviceparameter-name>InitLoop</toserviceparameter-name>
441 <coord-list/> </link>
443 <fromnode-name>DisplayVitesse</fromnode-name>
444 <fromserviceparameter-name>theResult</fromserviceparameter-name>
445 <tonode-name>EndOfInit</tonode-name>
446 <toserviceparameter-name>aResult</toserviceparameter-name>
453 <y>97</y> </coord> </coord-list> </link> </link-list>
456 <fromnode-name>aNewDataFlow</fromnode-name>
457 <fromserviceparameter-name>Init\index</fromserviceparameter-name>
458 <tonode-name>Init</tonode-name>
459 <toserviceparameter-name>index</toserviceparameter-name>
461 <value-type>3</value-type>
462 <value>1</value> </data-value>
463 <coord-list/> </data>
465 <fromnode-name>aNewDataFlow</fromnode-name>
466 <fromserviceparameter-name>Init\min</fromserviceparameter-name>
467 <tonode-name>Init</tonode-name>
468 <toserviceparameter-name>min</toserviceparameter-name>
470 <value-type>3</value-type>
471 <value>1</value> </data-value>
472 <coord-list/> </data>
474 <fromnode-name>aNewDataFlow</fromnode-name>
475 <fromserviceparameter-name>Init\max</fromserviceparameter-name>
476 <tonode-name>Init</tonode-name>
477 <toserviceparameter-name>max</toserviceparameter-name>
479 <value-type>3</value-type>
480 <value>100</value> </data-value>
481 <coord-list/> </data>
483 <fromnode-name>aNewDataFlow</fromnode-name>
484 <fromserviceparameter-name>Init\x1</fromserviceparameter-name>
485 <tonode-name>Init</tonode-name>
486 <toserviceparameter-name>x1</toserviceparameter-name>
488 <value-type>7</value-type>
489 <value>1</value> </data-value>
490 <coord-list/> </data> </data-list></dataflow>