<ServerManagerConfiguration>
  <ProxyGroup name="cosmotools_internal_sources">
    <!-- ================================================================== -->
    <SourceProxy class="vtkPCosmoReader"
                 name="CosmoReaderCore">
      <StringVectorProperty animateable="0"
                            command="SetFileName"
                            name="FileName"
                            number_of_elements="1"
                            panel_visibility="never">
        <FileListDomain name="files" />
        <Documentation>
          This property specifies the file name for the COSMO reader.
        </Documentation>
      </StringVectorProperty>
      <IntVectorProperty command="SetCosmoFormat"
                         default_values="1"
                         name="CosmoFormat"
                         number_of_elements="1">
        <EnumerationDomain name="enum">
          <Entry text="Gadget" value="0"/>
          <Entry text="Cosmo" value="1" />
        </EnumerationDomain>
        <Documentation>
          If checked, the data will be read as the LANL Cosmo
          format. If unchecked, the data will be read as Gadget-2
          format.
        </Documentation>
      </IntVectorProperty>
      <DoubleVectorProperty command="SetRL"
                            default_values="100"
                            name="BoxSideLength"
                            number_of_elements="1">
        <DoubleRangeDomain min="0" name="range" />
        <Documentation>
          The box side length is used to wrap particles around if
          they exceed rL (or less than 0) in any dimension.
        </Documentation>
      </DoubleVectorProperty>
      <DoubleVectorProperty command="SetOverlap"
                            default_values="5"
                            name="Overlap"
                            number_of_elements="1">
        <DoubleRangeDomain min="0"
                           name="range" />
        <Documentation>
          The space (in rL units) to extend processor particle
          ownership for ghost particles/cells. It is needed for correct halo
          calculation when halos cross processor boundaries in parallel
          computation.
        </Documentation>
      </DoubleVectorProperty>
    </SourceProxy>
  </ProxyGroup>
    <!-- End core-reader -->

  <ProxyGroup name="sources">
    <SourceProxy class="vtkFileSeriesReader"
                 file_name_method="SetFileName"
                 name="CosmoReader"
                 si_class="vtkSIMetaReaderProxy">
      <Documentation long_help="Reads a cosmology file into a vtkUnstructuredGrid."
                     short_help="Read a cosmology file.">
                     The Cosmology reader
                     reads a binary file of particle location, velocity, and id
                     creating a vtkUnstructuredGrid. The default file extension
                     is .cosmo64. Reads LANL Cosmo format or Gadget
                     format.
      </Documentation>
      <SubProxy>
        <Proxy name="Reader"
               proxygroup="cosmotools_internal_sources"
               proxyname="CosmoReaderCore">
        </Proxy>
        <ExposedProperties>
          <Property name="CosmoFormat" />
<!--          <Property name="ByteSwap" /> -->
          <Property name="BoxSideLength" />
          <Property name="Overlap" />
        </ExposedProperties>
      </SubProxy>
      <StringVectorProperty command="GetCurrentFileName"
                            information_only="1"
                            name="FileNameInfo">
        <SimpleStringInformationHelper />
      </StringVectorProperty>
      <StringVectorProperty animateable="0"
                            clean_command="RemoveAllFileNames"
                            command="AddFileName"
                            information_property="FileNameInfo"
                            name="FileName"
                            number_of_elements="1"
                            panel_visibility="never"
                            repeat_command="1">
        <FileListDomain name="files" />
        <Documentation>
          The list of files to be read by the reader.
        </Documentation>
      </StringVectorProperty>
      <DoubleVectorProperty information_only="1"
                            name="TimestepValues"
                            repeatable="1">
        <TimeStepsInformationHelper />
        <Documentation>
          Available timestep values.
        </Documentation>
      </DoubleVectorProperty>
      <Hints>
        <ReaderFactory extensions="cosmo64 cosmo"
                       file_description="Cosmology Files" />
      </Hints>
    </SourceProxy>
  </ProxyGroup>
  <!-- End Filters Group -->
</ServerManagerConfiguration>
