Salome HOME
[EDF24911] : StaticMesh option in Ensight Reader + Force Static Mesh Plugin. Synchron...
[modules/paravis.git] / src / Plugins / StaticMesh / plugin / readers.xml
diff --git a/src/Plugins/StaticMesh/plugin/readers.xml b/src/Plugins/StaticMesh/plugin/readers.xml
new file mode 100644 (file)
index 0000000..a367f06
--- /dev/null
@@ -0,0 +1,103 @@
+<ServerManagerConfiguration>
+  <ProxyGroup name="sources">
+
+    <!-- This proxy is a copy paste of the one in:
+      paraview/VTKExtensions/IOEnSight/Resources/readers_pv_ioensight.xml
+      with an additional entry: the UseStaticMesh boolean.
+    -->
+    <SourceProxy label="EnSight Reader"
+                 name="ensight"
+                 class="vtkGenericStaticEnSightReader">
+      <Documentation long_help="Reads EnSight 6 and Gold files (static version)."
+                     short_help="Read EnSight files (static version).">The
+                     EnSight reader reads files in the format produced by
+                     CEI's EnSight. EnSight 6 and Gold files (both ASCII
+                     and binary) are supported. This version allows to generate
+                     static meshes, on which geometry is considered constant
+                     between time steps. The default extension is .case. The
+                     output of this reader is a multiblock dataset.
+      </Documentation>
+
+      <!-- Additional boolean to control static mesh generation -->
+      <IntVectorProperty
+         name="UseStaticMesh"
+         command="SetUseStaticMesh"
+         label="Use static mesh"
+         number_of_elements="1"
+         default_values="1">
+         <BooleanDomain name="bool"/>
+         <Documentation>
+           Control static output mesh generation. When this option is checked,
+           the first time this reader is executed a mesh will be generated,
+           then only points, cells and fields data will be updated without
+           rereading and recreating the mesh geometry. Keep unchecked for
+           non-static EnSight files.
+         </Documentation>
+      </IntVectorProperty>
+
+      <!-- Original XML -->
+      <StringVectorProperty animateable="0"
+                            command="SetCaseFileName"
+                            name="CaseFileName"
+                            number_of_elements="1">
+        <FileListDomain name="files" />
+        <Documentation>This property specifies the case file name for the
+        EnSight reader.</Documentation>
+      </StringVectorProperty>
+      <DoubleVectorProperty information_only="1"
+                            name="TimestepValues"
+                            repeatable="1">
+        <TimeStepsInformationHelper />
+        <Documentation>Available timestep values.</Documentation>
+      </DoubleVectorProperty>
+      <StringVectorProperty information_only="1"
+                            name="CellArrayInfo">
+        <ArraySelectionInformationHelper attribute_name="Cell" />
+      </StringVectorProperty>
+      <StringVectorProperty command="SetCellArrayStatus"
+                            element_types="2 0"
+                            information_property="CellArrayInfo"
+                            label="Cell Arrays"
+                            name="CellArrayStatus"
+                            number_of_elements="0"
+                            number_of_elements_per_command="2"
+                            repeat_command="1">
+        <ArraySelectionDomain name="array_list">
+          <RequiredProperties>
+            <Property function="ArrayList"
+                      name="CellArrayInfo" />
+          </RequiredProperties>
+        </ArraySelectionDomain>
+        <Documentation>This property lists which cell-centered arrays to
+        read.</Documentation>
+      </StringVectorProperty>
+      <StringVectorProperty information_only="1"
+                            name="PointArrayInfo">
+        <ArraySelectionInformationHelper attribute_name="Point" />
+      </StringVectorProperty>
+      <StringVectorProperty command="SetPointArrayStatus"
+                            element_types="2 0"
+                            information_property="PointArrayInfo"
+                            label="Point Arrays"
+                            name="PointArrayStatus"
+                            number_of_elements="0"
+                            number_of_elements_per_command="2"
+                            repeat_command="1">
+        <ArraySelectionDomain name="array_list">
+          <RequiredProperties>
+            <Property function="ArrayList"
+                      name="PointArrayInfo" />
+          </RequiredProperties>
+        </ArraySelectionDomain>
+        <Documentation>This property lists which point-centered arrays to
+        read.</Documentation>
+      </StringVectorProperty>
+
+      <Hints>
+        <ReaderFactory extensions="case CASE Case"
+                       file_description="EnSight Files" />
+      </Hints>
+    </SourceProxy>
+
+  </ProxyGroup>
+</ServerManagerConfiguration>