Salome HOME
Addition of a menu Mechanics into filters menu of Paravis.
[modules/paravis.git] / src / Plugins / MEDReader / ParaViewPlugin / Resources / MEDReaderServer.xml
index 80d730b3f62b3f4bea7755cdcdf025310246d73f..c1ec717123ad81cc2b5a74e3e959ecaa68ca4810 100644 (file)
@@ -8,41 +8,23 @@
        </ReaderFactory>
       </Hints>
 
+      <Property name="Reload"
+                command="Reload"
+                panel_widget="MEDReaderReloadWidgetType"/>
+
       <StringVectorProperty
         name="FileName"
         command="SetFileName"
         number_of_elements="1"
+        panel_visibility="never"
         animateable="0">
         <FileListDomain name="files" />
         <Documentation>
           This property specifies the file name for the MED reader.
         </Documentation>
       </StringVectorProperty>
-      
-      <IntVectorProperty
-        name="ReloadReq"
-        command="Reload"
-        number_of_elements="1"
-        default_values="0"
-        animateable="0">
-        <SimpleIntInformationHelper />
-      </IntVectorProperty>
 
-      <IntVectorProperty
-        name="GenerateVectors"
-        command="GenerateVectors"
-        number_of_elements="1"
-        default_values="0"
-        animateable="0">
-        <SimpleIntInformationHelper />
-      </IntVectorProperty>
-
-      <IntVectorProperty
-        name="TimeOrModal"
-        command="ChangeMode"
-        number_of_elements="1"
-        default_values="0"
-        animateable="0">
+      <IntVectorProperty command="GetServerModifTime" information_only="1" name="ServerModifTime">
         <SimpleIntInformationHelper />
       </IntVectorProperty>
 
@@ -50,7 +32,7 @@
       <StringVectorProperty name="FieldsTreeInfo" information_only="1">
         <ArraySelectionInformationHelper attribute_name="FieldsTree" />
       </StringVectorProperty>
-      
+
       <StringVectorProperty
         name="FieldsStatus"
         command="SetFieldsStatus"
@@ -59,7 +41,9 @@
         repeat_command="1"
         number_of_elements_per_command="2"
         element_types="2 0"
-        information_property="FieldsTreeInfo">
+        information_property="FieldsTreeInfo"
+        immediate_update="1"
+        panel_widget="MEDReaderFieldsWidgetType">
         <ArraySelectionDomain name="array_list">
           <RequiredProperties>
             <Property name="FieldsTreeInfo" function="ArrayList" />
        </Documentation>
       </StringVectorProperty>
 
-      <StringVectorProperty name="TimesFlagsInfo" information_only="1">
-       <ArraySelectionInformationHelper attribute_name="TimesFlags" />
-     </StringVectorProperty>
-     
-     <StringVectorProperty name="TimesFlagsStatus" command="SetTimesFlagsStatus"
-                           label="All TimeSteps"
-                           number_of_elements="0"
-                           repeat_command="1"
-                           number_of_elements_per_command="2"
-                           element_types="2 0"
-                           information_property="TimesFlagsInfo">
-       <ArraySelectionDomain name="array_list">
-         <RequiredProperties>
-           <Property name="TimesFlagsInfo" function="ArrayList" />
-         </RequiredProperties>
-       </ArraySelectionDomain>
-       <Documentation>
-          This property lists all groups and families to select.
-       </Documentation>
-     </StringVectorProperty>
+      <IntVectorProperty name="VectorsProperty"
+                         label="Generate Vectors"
+                         command="GenerateVectors"
+                         number_of_elements="1"
+                         default_values="0"
+                         panel_widget="MEDReaderVectorsWidgetType">
+        <Documentation>
+          This property define if the reader generate vectors.
+        </Documentation>
+        <BooleanDomain name="bool"/>
+      </IntVectorProperty>
+      <IntVectorProperty name="TimeModeProperty"
+                         label="Activate Mode"
+                         command="ChangeMode"
+                         number_of_elements="1"
+                         default_values="0"
+                         panel_widget="MEDReaderTimeModeWidgetType">
+        <Documentation>
+          This property define if the reader read time steps as modes or not.
+        </Documentation>
+        <BooleanDomain name="bool"/>
+      </IntVectorProperty>
 
       <StringVectorProperty
         name="Separator"
         </Documentation>
       </DoubleVectorProperty>
 
-    </SourceProxy>
+      <StringVectorProperty name="TimesFlagsInfo" information_only="1">
+       <ArraySelectionInformationHelper attribute_name="TimesFlags" />
+     </StringVectorProperty>
+
+     <StringVectorProperty name="TimesFlagsStatus" command="SetTimesFlagsStatus"
+                           label="All TimeSteps"
+                           number_of_elements="0"
+                           repeat_command="1"
+                           number_of_elements_per_command="2"
+                           element_types="2 0"
+                           information_property="TimesFlagsInfo"
+                           panel_widget="MEDReaderTimesFlagsWidgetType">
+       <ArraySelectionDomain name="array_list">
+         <RequiredProperties>
+           <Property name="TimesFlagsInfo" function="ArrayList" />
+         </RequiredProperties>
+       </ArraySelectionDomain>
+        <Documentation>
+          This property define which time steps the reader should read.
+        </Documentation>
+        <Hints>
+          <PropertyWidgetDecorator type="ShowWidgetDecorator">
+            <Property name="TimeModeProperty" function="boolean" />
+          </PropertyWidgetDecorator>
+        </Hints>
+     </StringVectorProperty>
+
+   </SourceProxy>
   </ProxyGroup>
 
   <ProxyGroup name="filters">
          This property specifies the input to the Level Scalars filter.
        </Documentation>
      </InputProperty>
-     
-     <IntVectorProperty name="SILUpdateStamp" command="GetSILUpdateStamp" information_only="1">
-       <SimpleIntInformationHelper />
-       <Documentation>
-         Information property indicating the update stamp of the SIL. Every
-         time the SIL is rebuild, this
-         time stamp is changed.
-       </Documentation>
-     </IntVectorProperty>
-     
+
      <StringVectorProperty name="GroupsFlagsInfo" information_only="1">
        <ArraySelectionInformationHelper attribute_name="GroupsFlags" />
      </StringVectorProperty>
-     
+
      <StringVectorProperty name="GroupsFlagsStatus" command="SetGroupsFlagsStatus"
                            label="All Groups"
                            number_of_elements="0"
                            repeat_command="1"
                            number_of_elements_per_command="2"
                            element_types="2 0"
-                           information_property="GroupsFlagsInfo">
+                           information_property="GroupsFlagsInfo"
+                           panel_widget="ExtractGroupFieldsWidgetType">
        <ArraySelectionDomain name="array_list">
          <RequiredProperties>
            <Property name="GroupsFlagsInfo" function="ArrayList" />
        </Documentation>
      </StringVectorProperty>
 
-     <IntVectorProperty command="SetInsideOut" default_values="0" name="InsideOut" number_of_elements="1">
+     <IntVectorProperty command="SetInsideOut" default_values="0" name="InsideOut" label="Extract Complementary" number_of_elements="1">
        <BooleanDomain name="bool"/>
        <Documentation>Choose which part of the dataset to keep regarding the selected Groups/Families. When 0 (default) the direct selection
        is kept. When 1 the complementary part is selected.
           This property returns the name of the mesh.
         </Documentation>
       </StringVectorProperty>
+
     </SourceProxy>
   </ProxyGroup>
-  
+
   <ProxyGroup name="filters">
     <SourceProxy name="ExtractCellType" class="vtkExtractCellType" label="Extract Cell Type">
      <InputProperty name="Input" command="SetInputConnection">
          This property specifies the input to the Level Scalars filter.
        </Documentation>
      </InputProperty>
-     
-     <IntVectorProperty name="SILUpdateStamp" command="GetSILUpdateStamp" information_only="1">
-       <SimpleIntInformationHelper />
-       <Documentation>
-         Information property indicating the update stamp of the SIL. Every
-         time the SIL is rebuild, this
-         time stamp is changed.
-       </Documentation>
-     </IntVectorProperty>
-     
+
      <StringVectorProperty name="GeoTypesInfo" information_only="1">
        <ArraySelectionInformationHelper attribute_name="GeoTypes" />
      </StringVectorProperty>
-     
+
      <StringVectorProperty name="GeoTypesStatus" command="SetGeoTypesStatus"
-                           label="All GeoTypes"
+                           label="All Geo Types"
                            number_of_elements="0"
                            repeat_command="1"
                            number_of_elements_per_command="2"
           This property lists all the geometric types to select.
        </Documentation>
      </StringVectorProperty>
-     <IntVectorProperty command="SetInsideOut" default_values="0" name="InsideOut" number_of_elements="1">
+     <IntVectorProperty command="SetInsideOut" label="Extract Complementary" default_values="0" name="InsideOut" number_of_elements="1">
        <BooleanDomain name="bool"/>
        <Documentation>Choose which part of the dataset to keep regarding the selected geometric types. When 0 (default) the direct selection
        is kept. When 1 the complementary part is selected.
           short_help="Create a Mesh with ELNO values mapped at each vertex.">
         "Create a Mesh with ELNO values mapped at each vertex."
       </Documentation>
+
       <InputProperty name="Input" command="SetInputConnection">
         <ProxyGroupDomain name="groups">
           <Group name="sources" />
         </DataTypeDomain>
         <InputArrayDomain name="input_array" attribute_type="cell" />
       </InputProperty>
+
+      <DoubleVectorProperty animateable="1"
+                            command="SetShrinkFactor"
+                            default_values="0.9999"
+                            name="ShrinkFactor"
+                            number_of_elements="1">
+        <DoubleRangeDomain max="1" min="0" name="range" />
+        <Documentation>The value of this property determines how far the points
+        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>
+      </DoubleVectorProperty>
+      <Hints>
+        <ShowInMenu category="Mechanics" />
+      </Hints>
     </SourceProxy>
 
     <SourceProxy name="ELNOSurface" class="vtkELNOSurfaceFilter" label="ELNO Surface">
           </RequiredProperties>
         </ArrayListDomain>
       </StringVectorProperty>
-      <Hints> 
+      <Hints>
         <Property name="SelectSourceArray" show="0"/>
+        <ShowInMenu category="Mechanics" />
       </Hints>
     </SourceProxy>
 
-    <SourceProxy name="GaussPoints" class="vtkQuadraturePointsGenerator" label="Gauss Points">
+    <SourceProxy name="GaussPoints" class="vtkMEDQuadraturePointsGenerator" label="Gauss Points">
       <Documentation
         long_help="Create a point set with data at Gauss points."
         short_help="Create a point set with data at Gauss points.">
 
       <Hints>
         <Property name="SelectSourceArray" show="1"/>
+        <ShowInMenu category="Mechanics" />
       </Hints>
 
     </SourceProxy>
-    
+
     <SourceProxy name="ELNOPoints" class="vtkELNOFilter" label="ELNO Points">
       <Documentation
         long_help="Create a point set with data at ELNO points. Cells are shrinked by a given factor towards the cell center."
 
       <Hints>
         <Property name="SelectSourceArray" show="0"/>
+        <ShowInMenu category="Mechanics" />
       </Hints>
     </SourceProxy>
 
-
     <SourceProxy
       name="GenerateStructuralElement"
       class="vtkGenerateStructElement"