Salome HOME
Adding a MEDReader Group Reader that reads a file series of .med into a multiblock
[modules/paravis.git] / src / Plugins / MEDReader / plugin / ParaViewPlugin / Resources / MEDReaderServer.xml
1 <ServerManagerConfiguration>
2   <ProxyGroup name="sources">
3     <SourceProxy name="MEDReader" class="vtkMEDReader" label="MED Reader">
4
5       <Hints>
6         <ReaderFactory extensions="med rmed"
7                        file_description="MED Files">
8         </ReaderFactory>
9       </Hints>
10
11       <Property name="Reload"
12                 command="Reload"
13                 panel_widget="MEDReaderReloadWidgetType"/>
14
15       <StringVectorProperty
16         name="FileName"
17         command="SetFileName"
18         number_of_elements="1"
19         panel_visibility="never"
20         animateable="0">
21         <FileListDomain name="files" />
22         <Documentation>
23           This property specifies the file name for the MED reader.
24         </Documentation>
25       </StringVectorProperty>
26
27       <!-- retrieves using GetNumberOf[FieldsTree]Arrays and GetFieldsTreeArrayName the keys used by FieldsStatus -->
28       <StringVectorProperty name="FieldsTreeInfo" information_only="1">
29         <ArraySelectionInformationHelper attribute_name="FieldsTree" />
30       </StringVectorProperty>
31
32       <StringVectorProperty
33         name="FieldsStatus"
34         command="SetFieldsStatus"
35         label="All Arrays"
36         number_of_elements="0"
37         repeat_command="1"
38         number_of_elements_per_command="2"
39         element_types="2 0"
40         information_property="FieldsTreeInfo"
41         immediate_update="1"
42         panel_widget="MEDReaderFieldsWidgetType">
43         <ArraySelectionDomain name="array_list">
44           <RequiredProperties>
45             <Property name="FieldsTreeInfo" function="ArrayList" />
46           </RequiredProperties>
47         </ArraySelectionDomain>
48         <Documentation>
49           This property lists all the fields sorted by time steps then by mesh then by common support.
50        </Documentation>
51       </StringVectorProperty>
52
53       <IntVectorProperty name="VectorsProperty"
54                          label="Generate Vectors"
55                          command="GenerateVectors"
56                          number_of_elements="1"
57                          default_values="0"
58                          panel_widget="MEDReaderVectorsWidgetType">
59         <Documentation>
60           This property define if the reader generate vectors.
61         </Documentation>
62         <BooleanDomain name="bool"/>
63       </IntVectorProperty>
64       <IntVectorProperty name="TimeModeProperty"
65                          label="Activate Mode"
66                          command="ChangeMode"
67                          number_of_elements="1"
68                          default_values="0"
69                          panel_widget="MEDReaderTimeModeWidgetType">
70         <Documentation>
71           This property define if the reader read time steps as modes or not.
72         </Documentation>
73         <BooleanDomain name="bool"/>
74       </IntVectorProperty>
75
76       <StringVectorProperty
77         name="Separator"
78         command="GetSeparator"
79         number_of_elements="1"
80         animateable="0"
81         information_only="1">
82         <Documentation>
83           This property specifies the file name for the MED reader.
84         </Documentation>
85       </StringVectorProperty>
86
87       <DoubleVectorProperty
88         name="TimestepValues"
89         repeatable="1"
90         information_only="1">
91         <TimeStepsInformationHelper />
92         <Documentation>
93           Available timestep values.
94         </Documentation>
95       </DoubleVectorProperty>
96
97       <StringVectorProperty name="TimesFlagsInfo" information_only="1">
98        <ArraySelectionInformationHelper attribute_name="TimesFlags" />
99      </StringVectorProperty>
100
101      <StringVectorProperty name="TimesFlagsStatus" command="SetTimesFlagsStatus"
102                            label="All TimeSteps"
103                            number_of_elements="0"
104                            repeat_command="1"
105                            number_of_elements_per_command="2"
106                            element_types="2 0"
107                            information_property="TimesFlagsInfo"
108                            panel_widget="MEDReaderTimesFlagsWidgetType">
109        <ArraySelectionDomain name="array_list">
110          <RequiredProperties>
111            <Property name="TimesFlagsInfo" function="ArrayList" />
112          </RequiredProperties>
113        </ArraySelectionDomain>
114         <Documentation>
115           This property define which time steps the reader should read.
116         </Documentation>
117         <Hints>
118           <PropertyWidgetDecorator type="ShowWidgetDecorator">
119             <Property name="TimeModeProperty" function="boolean" />
120           </PropertyWidgetDecorator>
121         </Hints>
122      </StringVectorProperty>
123
124      <IntVectorProperty name="GhostCellGeneratorCallForPara"
125                         label="Ghost Computation In Parallel Case"
126                         command="GhostCellGeneratorCallForPara"
127                         number_of_elements="1"
128                         default_values="1"
129                         panel_visibility="advanced">
130         <Documentation>
131           This property tells if ghost cell generator is applied in parallel mode right after MED file read. This call has a CPU cost but it avoids viz artefacts (interfaces inside dataset on domain borders) you can experiment during usage of filters sensitive to ghost cells in // mode (Ex transparency, contour...). 
132         </Documentation>
133         <BooleanDomain name="bool"/>
134       </IntVectorProperty>
135
136    </SourceProxy>
137
138    <SourceProxy class="vtkFileSeriesGroupReader"
139                  file_name_method="SetFileName"
140                  label="MED Reader Group"
141                  name="MEDReaderGroup"
142                  si_class="vtkSIMetaReaderProxy">
143       <SubProxy>
144         <Proxy name="Reader"
145                proxygroup="sources"
146                proxyname="MEDReader"></Proxy>
147         <ExposedProperties>
148           <Property name="Reload" />
149           <Property name="FieldsTreeInfo" />
150           <Property name="FieldsStatus" />
151           <Property name="VectorsProperty" />
152           <Property name="Separator" />
153           <Property name="TimeModeProperty" />
154           <Property name="TimesFlagsInfo" />
155           <Property name="TimesFlagsStatus" />
156           <Property name="GhostCellGeneratorCallForPara" />
157         </ExposedProperties>
158       </SubProxy>
159       <StringVectorProperty animateable="0"
160                             clean_command="RemoveAllFileNames"
161                             command="AddFileName"
162                             name="FileNames"
163                             number_of_elements="0"
164                             panel_visibility="never"
165                             repeat_command="1">
166         <FileListDomain name="files" />
167         <Documentation>The list of files to be read by the 
168         reader.</Documentation>
169       </StringVectorProperty>
170       <DoubleVectorProperty
171           information_only="1"
172           name="TimestepValues"
173           repeatable="1">
174         <TimeStepsInformationHelper />
175       </DoubleVectorProperty>
176
177       <Hints>
178               <ReaderFactory extensions="med rmed"
179                                    file_description="MED Files">
180         </ReaderFactory>
181       </Hints>
182    </SourceProxy>
183   </ProxyGroup>
184
185   <ProxyGroup name="filters">
186     <SourceProxy name="ExtractGroup" class="vtkExtractGroup" label="Extract Group">
187      <InputProperty name="Input" command="SetInputConnection">
188        <ProxyGroupDomain name="groups">
189          <Group name="sources"/>
190          <Group name="filters"/>
191        </ProxyGroupDomain>
192        <DataTypeDomain name="input_type">
193          <DataType value="vtkDataSet"/>
194        </DataTypeDomain>
195        <Documentation>
196          This property specifies the input to the Level Scalars filter.
197        </Documentation>
198      </InputProperty>
199
200      <StringVectorProperty name="GroupsFlagsInfo" information_only="1">
201        <ArraySelectionInformationHelper attribute_name="GroupsFlags" />
202      </StringVectorProperty>
203
204      <StringVectorProperty name="GroupsFlagsStatus" command="SetGroupsFlagsStatus"
205                            label="All Groups"
206                            number_of_elements="0"
207                            repeat_command="1"
208                            number_of_elements_per_command="2"
209                            element_types="2 0"
210                            information_property="GroupsFlagsInfo"
211                            panel_widget="ExtractGroupFieldsWidgetType">
212        <ArraySelectionDomain name="array_list">
213          <RequiredProperties>
214            <Property name="GroupsFlagsInfo" function="ArrayList" />
215          </RequiredProperties>
216        </ArraySelectionDomain>
217        <Documentation>
218           This property lists all groups and families to select.
219        </Documentation>
220      </StringVectorProperty>
221
222      <IntVectorProperty command="SetInsideOut" default_values="0" name="InsideOut" label="Extract Complementary" number_of_elements="1">
223        <BooleanDomain name="bool"/>
224        <Documentation>Choose which part of the dataset to keep regarding the selected Groups/Families. When 0 (default) the direct selection
225        is kept. When 1 the complementary part is selected.
226        </Documentation>
227       </IntVectorProperty>
228
229       <StringVectorProperty
230           name="MeshName"
231           command="GetMeshName"
232           number_of_elements="1"
233           animateable="0"
234           information_only="1">
235         <Documentation>
236           This property returns the name of the mesh.
237         </Documentation>
238       </StringVectorProperty>
239
240     </SourceProxy>
241
242     <SourceProxy name="GroupAsMultiBlock" class="vtkGroupAsMultiBlock" label="Groups As MultiBlocks">
243       <InputProperty name="Input" command="SetInputConnection">
244        <ProxyGroupDomain name="groups">
245          <Group name="sources"/>
246          <Group name="filters"/>
247        </ProxyGroupDomain>
248        <DataTypeDomain name="input_type">
249          <DataType value="vtkDataSet"/>
250        </DataTypeDomain>
251        <Documentation>
252          This property specifies the input to the Level Scalars filter.
253        </Documentation>
254      </InputProperty>
255     </SourceProxy>
256
257     <SourceProxy name="GroupsNames" class="vtkGroupsNames" label="Groups Names">
258       <InputProperty name="Input" command="SetInputConnection">
259        <ProxyGroupDomain name="groups">
260          <Group name="sources"/>
261          <Group name="filters"/>
262        </ProxyGroupDomain>
263        <DataTypeDomain name="input_type">
264          <DataType value="vtkDataSet"/>
265        </DataTypeDomain>
266        <Documentation>
267          This property specifies the input to the Level Scalars filter.
268        </Documentation>
269      </InputProperty>
270     </SourceProxy>
271
272
273   </ProxyGroup>
274
275   <ProxyGroup name="filters">
276     <SourceProxy name="ExtractCellType" class="vtkExtractCellType" label="Extract Cell Type">
277      <InputProperty name="Input" command="SetInputConnection">
278        <ProxyGroupDomain name="groups">
279          <Group name="sources"/>
280          <Group name="filters"/>
281        </ProxyGroupDomain>
282        <DataTypeDomain name="input_type">
283          <DataType value="vtkDataSet"/>
284        </DataTypeDomain>
285        <Documentation>
286          This property specifies the input to the Level Scalars filter.
287        </Documentation>
288      </InputProperty>
289
290      <StringVectorProperty name="GeoTypesInfo" information_only="1">
291        <ArraySelectionInformationHelper attribute_name="GeoTypes" />
292      </StringVectorProperty>
293
294      <StringVectorProperty name="GeoTypesStatus" command="SetGeoTypesStatus"
295                            label="All Geo Types"
296                            number_of_elements="0"
297                            repeat_command="1"
298                            number_of_elements_per_command="2"
299                            element_types="2 0"
300                            information_property="GeoTypesInfo">
301        <ArraySelectionDomain name="array_list">
302          <RequiredProperties>
303            <Property name="GeoTypesInfo" function="ArrayList" />
304          </RequiredProperties>
305        </ArraySelectionDomain>
306        <Documentation>
307           This property lists all the geometric types to select.
308        </Documentation>
309      </StringVectorProperty>
310      <IntVectorProperty command="SetInsideOut" label="Extract Complementary" default_values="0" name="InsideOut" number_of_elements="1">
311        <BooleanDomain name="bool"/>
312        <Documentation>Choose which part of the dataset to keep regarding the selected geometric types. When 0 (default) the direct selection
313        is kept. When 1 the complementary part is selected.
314        </Documentation>
315       </IntVectorProperty>
316     </SourceProxy>
317
318     <SourceProxy name="ELNOMesh" class="vtkELNOMeshFilter" label="ELNO field To Surface">
319       <Documentation
320           long_help="Create a Mesh with ELNO values mapped at each vertex."
321           short_help="Create a Mesh with ELNO values mapped at each vertex.">
322         "Create a Mesh with ELNO values mapped at each vertex."
323       </Documentation>
324
325       <InputProperty name="Input" command="SetInputConnection">
326         <ProxyGroupDomain name="groups">
327           <Group name="sources" />
328           <Group name="filters" />
329         </ProxyGroupDomain>
330         <DataTypeDomain name="input_type">
331           <DataType value="vtkUnstructuredGrid" />
332         </DataTypeDomain>
333         <InputArrayDomain name="input_array" attribute_type="cell" />
334       </InputProperty>
335
336       <DoubleVectorProperty animateable="1"
337                             command="SetShrinkFactor"
338                             default_values="0.9999"
339                             name="ShrinkFactor"
340                             number_of_elements="1">
341         <DoubleRangeDomain max="1" min="0" name="range" />
342         <Documentation>The value of this property determines how far the points
343         will move in the mesh before to be colored using ELNO fields on it. A value of 0 positions the points at the centroid of the cell; a value of 1 leaves them at their original positions.</Documentation>
344       </DoubleVectorProperty>
345       <Hints>
346         <ShowInMenu category="Mechanics" />
347       </Hints>
348     </SourceProxy>
349
350     <SourceProxy name="ELNOSurface" class="vtkELNOSurfaceFilter" label="ELNO field To Surface (skin only)">
351       <Documentation
352         long_help="Extract the surface of a dataset with ELNO values."
353         short_help="Extract the surface of a dataset with ELNO values.">
354         "Extract the surface of a dataset with ELNO values."
355       </Documentation>
356       <OutputPort name="ELNO Surface" index="0" />
357       <InputProperty name="Input" command="SetInputConnection">
358         <ProxyGroupDomain name="groups">
359           <Group name="sources" />
360           <Group name="filters" />
361         </ProxyGroupDomain>
362         <DataTypeDomain name="input_type">
363           <DataType value="vtkUnstructuredGrid" />
364         </DataTypeDomain>
365         <InputArrayDomain name="input_array" attribute_type="cell" />
366       </InputProperty>
367
368       <!-- Source Array -->
369       <StringVectorProperty
370         name="SelectSourceArray"
371         command="SetInputArrayToProcess"
372         number_of_elements="5"
373         element_types="0 0 0 0 2"
374         animateable="0">
375         <Documentation>
376           Specifies the offset array from which we generate ELNO points.
377         </Documentation>
378
379         <ArrayListDomain
380           name="array_list"
381           key_locations="MEDUtilities"
382           key_names="ELNO"
383           key_strategies="need_key">
384           <RequiredProperties>
385             <Property name="Input" function="Input" />
386           </RequiredProperties>
387         </ArrayListDomain>
388       </StringVectorProperty>
389       <Hints>
390         <Property name="SelectSourceArray" show="0"/>
391         <ShowInMenu category="Mechanics" />
392       </Hints>
393     </SourceProxy>
394
395     <SourceProxy name="GaussPoints" class="vtkMEDQuadraturePointsGenerator" label="ELGA field To Point Gaussian">
396       <Documentation
397         long_help="Create a point set with data at Gauss points."
398         short_help="Create a point set with data at Gauss points.">
399         "Create a point set with data at quadrature points."
400       </Documentation>
401
402       <OutputPort
403         name="Gauss Points"
404         index="0" />
405
406       <InputProperty
407         name="Input"
408         command="SetInputConnection">
409         <ProxyGroupDomain
410           name="groups">
411           <Group
412             name="sources" />
413           <Group
414             name="filters" />
415         </ProxyGroupDomain>
416         <DataTypeDomain
417           name="input_type">
418           <DataType
419             value="vtkUnstructuredGrid" />
420         </DataTypeDomain>
421         <InputArrayDomain
422           name="input_array"
423           attribute_type="cell" />
424       </InputProperty>
425
426       <!-- Source Array -->
427       <StringVectorProperty
428         name="SelectSourceArray"
429         command="SetInputArrayToProcess"
430         number_of_elements="5"
431         element_types="0 0 0 0 2"
432         animateable="0">
433         <Documentation>
434           Specifies the offset array from which we generate Gauss points.
435         </Documentation>
436
437         <ArrayListDomain
438           name="array_list"
439           key_locations="MEDUtilities"
440           key_names="ELGA"
441           key_strategies="need_key">
442           <RequiredProperties>
443             <Property
444               name="Input"
445               function="Input" />
446           </RequiredProperties>
447         </ArrayListDomain>
448       </StringVectorProperty>
449
450       <Hints>
451         <Property name="SelectSourceArray" show="1"/>
452         <ShowInMenu category="Mechanics" />
453       </Hints>
454
455     </SourceProxy>
456
457     <SourceProxy name="ELNOPoints" class="vtkELNOFilter" label="ELNO field To Point Gaussian">
458       <Documentation
459         long_help="Create a point set with data at ELNO points. Cells are shrinked by a given factor towards the cell center."
460         short_help="Create a point set with data at ELNO points. Cells are shrinked by a given factor towards the cell center.">
461         "Create a point set with data at quadrature points."
462       </Documentation>
463
464       <OutputPort name="ELNO Points" index="0" />
465
466       <InputProperty name="Input" command="SetInputConnection">
467         <ProxyGroupDomain name="groups">
468           <Group name="sources" />
469           <Group name="filters" />
470         </ProxyGroupDomain>
471         <DataTypeDomain
472           name="input_type">
473           <DataType value="vtkUnstructuredGrid" />
474         </DataTypeDomain>
475         <InputArrayDomain name="input_array" attribute_type="cell" />
476       </InputProperty>
477
478       <!-- Source Array -->
479       <StringVectorProperty
480         name="SelectSourceArray"
481         command="SetInputArrayToProcess"
482         number_of_elements="5"
483         element_types="0 0 0 0 2"
484         animateable="0">
485         <Documentation>
486           Specifies the offset array from which we generate ELNO points.
487         </Documentation>
488
489         <ArrayListDomain
490           name="array_list"
491           key_locations="MEDUtilities"
492           key_names="ELNO"
493           key_strategies="need_key"
494           input_domain_name="input_array">
495           <RequiredProperties>
496             <Property name="Input" function="Input" />
497           </RequiredProperties>
498         </ArrayListDomain>
499       </StringVectorProperty>
500
501       <DoubleVectorProperty
502         name="ShrinkFactor"
503         command="SetShrinkFactor"
504         label="Shrink Factor"
505         number_of_elements="1"
506         default_values="0.5">
507         <DoubleRangeDomain name="range" min="0" max="1" />
508       </DoubleVectorProperty>
509
510       <Hints>
511         <Property name="SelectSourceArray" show="0"/>
512         <ShowInMenu category="Mechanics" />
513       </Hints>
514     </SourceProxy>
515
516     <SourceProxy
517       name="GenerateStructuralElement"
518       class="vtkGenerateStructElement"
519       label="Generate Structural Element">
520
521      <InputProperty
522         name="Input"
523         command="SetInputConnection">
524            <ProxyGroupDomain name="groups">
525              <Group name="sources"/>
526              <Group name="filters"/>
527            </ProxyGroupDomain>
528            <DataTypeDomain name="input_type">
529              <DataType value="vtkUnstructuredGrid"/>
530            </DataTypeDomain>
531            <Documentation>
532              This property specifies the input to the Generate Structural Element filter.
533            </Documentation>
534      </InputProperty>
535
536     </SourceProxy>
537   </ProxyGroup>
538 </ServerManagerConfiguration>