Commit a4f6d132 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit

Remove non-xml text from XML resource files.

We will no longer support #if/#endif in XML files. That makes it hard
for catalyze.py to parse those XMLs.
parent 901ec26f
......@@ -115,6 +115,33 @@ SET(requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/writers.xml
${module_sm_xmls}
)
if (PARAVIEW_USE_MPI)
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/proxies_mpi.xml)
endif()
if("${VTK_RENDERING_BACKEND}" STREQUAL "OpenGL2")
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/proxies_opengl2.xml)
else()
# Old OpenGL.
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/proxies_opengl1.xml)
endif()
#------------------------------------------------------------------------------
# These checks are wrong. Module_vtk* flags are set to true only when the module
# is explictly enabled, not when the module was enabled due to a dependency. I
# am leaving that as is for now since I am only splitting the files up. We need
# to revisit.
if (Module_vtkIOXdmf3)
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/proxies_xdmf3.xml)
endif()
if (Module_vtkIOADIOS)
list(APPEND requestedResourceFiles
${CMAKE_CURRENT_SOURCE_DIR}/Resources/proxies_adios.xml)
endif()
#------------------------------------------------------------------------------
if (PARAVIEW_ENABLE_PYTHON)
list(APPEND requestedResourceFiles
......
......@@ -767,65 +767,6 @@
<!-- End IntegrateFlowThroughSurface -->
</SourceProxy>
<!-- ==================================================================== -->
#ifdef PARAVIEW_USE_MPI
<SourceProxy class="vtkAllToNRedistributePolyData"
label="All to N"
multiprocess_support="multiple_processes"
name="AllToN">
<Documentation long_help="Redistribute data to a subset of available processes."
short_help="Repartition data filter.">The All to N filter
is available when ParaView is run in parallel. It
redistributes the data so that it is located on the number
of processes specified in the Number of Processes entry
box. It also does load-balancing of the data among these
processes. This filter operates on polygonal data and
produces polygonal output.</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
<ProxyGroupDomain name="groups">
<Group name="sources" />
<Group name="filters" />
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkPolyData" />
</DataTypeDomain>
<Documentation>Set the input to the All to N filter.</Documentation>
</InputProperty>
<IntVectorProperty command="SetNumberOfProcesses"
default_values="1"
label="Number of Processes"
name="NumberOfProcesses"
number_of_elements="1">
<Documentation>Set the number of processes across which to split the
input data.</Documentation>
</IntVectorProperty>
<!-- End AllToN -->
</SourceProxy>
<!-- ==================================================================== -->
<SourceProxy class="vtkBalancedRedistributePolyData"
multiprocess_support="multiple_processes"
name="Balance">
<Documentation long_help="Balance data among available processes."
short_help="Load balance filter.">The Balance filter is
available when ParaView is run in parallel. It does
load-balancing so that all processes have the same number
of cells. It operates on polygonal data sets and produces
polygonal output.</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
<ProxyGroupDomain name="groups">
<Group name="sources" />
<Group name="filters" />
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkPolyData" />
</DataTypeDomain>
<Documentation>Set the input to the Balance filter.</Documentation>
</InputProperty>
<!-- End Balance -->
</SourceProxy>
#endif
<!-- ==================================================================== -->
<SourceProxy class="vtkMergeArrays"
label="Append Attributes"
name="AppendAttributes">
......@@ -1705,65 +1646,7 @@ found and the point will be rejected.</Documentation>
</IntVectorProperty>
<!-- End DecimatePro -->
</SourceProxy>
<!-- ==================================================================== -->
#ifdef PARAVIEW_USE_MPI
<SourceProxy class="vtkDistributedDataFilter"
label="D3"
multiprocess_support="multiple_processes"
name="D3">
<Documentation long_help="Repartition a data set into load-balanced spatially convex regions. Create ghost cells if requested."
short_help="Repartition a data set.">The D3 filter is
available when ParaView is run in parallel. It operates on
any type of data set to evenly divide it across the
processors into spatially contiguous regions. The output
of this filter is of type unstructured
grid.</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
<ProxyGroupDomain name="groups">
<Group name="sources" />
<Group name="filters" />
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkDataSet" />
</DataTypeDomain>
<Documentation>This property specifies the input to the D3
filter.</Documentation>
</InputProperty>
<IntVectorProperty command="SetBoundaryMode"
default_values="0"
name="BoundaryMode"
number_of_elements="1">
<EnumerationDomain name="enum">
<Entry text="Assign cells uniquely"
value="0" />
<Entry text="Duplicate cells"
value="1" />
<Entry text="Divide cells"
value="2" />
</EnumerationDomain>
<Documentation>This property determines how cells that lie on processor
boundaries are handled. The "Assign cells uniquely" option assigns each
boundary cell to exactly one process, which is useful for isosurfacing.
Selecting "Duplicate cells" causes the cells on the boundaries to be
copied to each process that shares that boundary. The "Divide cells"
option breaks cells across process boundary lines so that pieces of the
cell lie in different processes. This option is useful for volume
rendering.</Documentation>
</IntVectorProperty>
<IntVectorProperty command="SetUseMinimalMemory"
default_values="0"
label="Minimal Memory"
name="UseMinimalMemory"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>If this property is set to 1, the D3 filter requires
communication routines to use minimal memory than without this
restriction.</Documentation>
</IntVectorProperty>
<!-- End D3 -->
</SourceProxy>
#endif
<!-- ==================================================================== -->
<SourceProxy class="vtkElevationFilter"
label="Elevation"
......
<ServerManagerConfiguration>
<!-- ==================================================================== -->
<ProxyGroup name="writers">
<!-- ================================================================= -->
<WriterProxy class="vtkADIOSWriter"
name="ADIOSWriter"
mpi_required="true">
<Documentation short_help="Write ADIOS BP files using VTKs schema.">
Writer to write ADIOS BP files using a VTK specific schema
</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
<ProxyGroupDomain name="groups">
<Group name="sources" />
<Group name="filters" />
</ProxyGroupDomain>
<DataTypeDomain composite_data_supported="0"
name="input_type">
<DataType value="vtkImageData" />
<DataType value="vtkPolyData" />
<DataType value="vtkUnstructuredGrid" />
</DataTypeDomain>
<Documentation>The input filter/source whose output dataset is to
written to the file.</Documentation>
</InputProperty>
<IntVectorProperty command="SetTransportMethod"
default_values="1"
name="TransportMethod"
number_of_elements="1">
<EnumerationDomain name="enum">
<Entry text="NULL" value="0" />
<Entry text="POSIX" value="1" />
<Entry text="MPI" value="2" />
<Entry text="MPILustre" value="3" />
<Entry text="MPIAggregate" value="4" />
<Entry text="VarMerge" value="5" />
<Entry text="DataSpaces" value="6" />
<Entry text="DIMES" value="7" />
<Entry text="FlexPath" value="8" />
<Entry text="PHDF5" value="9" />
<Entry text="NetCDF4" value="10" />
</EnumerationDomain>
<Documentation>
Select the specific ADIOS backend write method to use.
</Documentation>
</IntVectorProperty>
<StringVectorProperty command="SetTransportMethodArguments"
name="TransportMethodArguments"
default=""
number_of_elements="1">
<Documentation>
Configuration parameters to pass to the specified ADIOS backend.
</Documentation>
</StringVectorProperty>
<IntVectorProperty command="SetTransform"
default_values="0"
name="CompressionMethod"
number_of_elements="1">
<EnumerationDomain name="enum">
<Entry text="None" value="0" />
<Entry text="ZLib" value="1" />
<Entry text="BZip2" value="2" />
<Entry text="SZip" value="3" />
</EnumerationDomain>
<Documentation>
Select the specific array compression method to use.
</Documentation>
</IntVectorProperty>
<StringVectorProperty command="SetFileName"
name="FileName"
number_of_elements="1">
<Documentation>The name of the file to write to.</Documentation>
</StringVectorProperty>
<IntVectorProperty command="SetWriteAllTimeSteps"
default_values="0"
name="WriteAllTimeSteps"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>When WriteAllTimeSteps is turned ON, the writer is
executed once for each time step available from the
reader.</Documentation>
</IntVectorProperty>
<PropertyGroup label="Transport">
<Property name="TransportMethod" />
<Property name="TransportMethodArguments" />
</PropertyGroup>
<Hints>
<Property name="Input" show="0" />
<Property name="TransportMethod" show="1" />
<Property name="TransportMethodArgs" show="1" />
<Property name="CompressionMethod" show="1" />
<WriterFactory extensions="vta"
file_description="VTK ADIOS File" />
</Hints>
<!-- End of ADIOSWriter -->
</WriterProxy>
</ProxyGroup>
<!-- ==================================================================== -->
<ProxyGroup name="sources">
<!-- VTK ADIOS BP Reader -->
<SourceProxy name="ADIOSReader"
label="ADIOSReader"
class="vtkADIOSReader"
mpi_required="true">
<Documentation short_help="Read ADIOS BP files using VTKs schema.">
Reader to read ADIOS BP files using a VTK specific schema
</Documentation>
<StringVectorProperty animateable="0"
command="SetFileName"
name="FileName"
number_of_elements="1">
<FileListDomain name="files" />
<Documentation>
This property specifies the ADIOS filename.
</Documentation>
</StringVectorProperty>
<!-- Special sauce needed for timesteps -->
<DoubleVectorProperty information_only="1"
repeatable="1"
name="TimestepValues">
<TimeStepsInformationHelper />
</DoubleVectorProperty>
<IntVectorProperty name="ReadMethod"
command="SetReadMethod"
number_of_elements="1"
default_values="0"
label="Read Method"
panel_visibility="never">
<EnumerationDomain name="enum">
<Entry value="0" text="BP"/>
<Entry value="1" text="BPAggregate"/>
<Entry value="3" text="DataSpaces"/>
<Entry value="4" text="DIMES"/>
<Entry value="5" text="FlexPath"/>
</EnumerationDomain>
</IntVectorProperty>
<Hints>
<ReaderFactory extensions="vta"
file_description="VTK ADIOS File" />
</Hints>
</SourceProxy>
</ProxyGroup>
</ServerManagerConfiguration>
<ServerManagerConfiguration>
<!-- ********************************************************************** -->
<ProxyGroup name="filters">
<!-- ==================================================================== -->
<SourceProxy class="vtkDistributedDataFilter"
label="D3"
multiprocess_support="multiple_processes"
name="D3">
<Documentation long_help="Repartition a data set into load-balanced spatially convex regions. Create ghost cells if requested."
short_help="Repartition a data set.">The D3 filter is
available when ParaView is run in parallel. It operates on
any type of data set to evenly divide it across the
processors into spatially contiguous regions. The output
of this filter is of type unstructured
grid.</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
<ProxyGroupDomain name="groups">
<Group name="sources" />
<Group name="filters" />
</ProxyGroupDomain>
<DataTypeDomain name="input_type">
<DataType value="vtkDataSet" />
</DataTypeDomain>
<Documentation>This property specifies the input to the D3
filter.</Documentation>
</InputProperty>
<IntVectorProperty command="SetBoundaryMode"
default_values="0"
name="BoundaryMode"
number_of_elements="1">
<EnumerationDomain name="enum">
<Entry text="Assign cells uniquely"
value="0" />
<Entry text="Duplicate cells"
value="1" />
<Entry text="Divide cells"
value="2" />
</EnumerationDomain>
<Documentation>This property determines how cells that lie on processor
boundaries are handled. The "Assign cells uniquely" option assigns each
boundary cell to exactly one process, which is useful for isosurfacing.
Selecting "Duplicate cells" causes the cells on the boundaries to be
copied to each process that shares that boundary. The "Divide cells"
option breaks cells across process boundary lines so that pieces of the
cell lie in different processes. This option is useful for volume
rendering.</Documentation>
</IntVectorProperty>
<IntVectorProperty command="SetUseMinimalMemory"
default_values="0"
label="Minimal Memory"
name="UseMinimalMemory"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>If this property is set to 1, the D3 filter requires
communication routines to use minimal memory than without this
restriction.</Documentation>
</IntVectorProperty>
<!-- End D3 -->
</SourceProxy>
</ProxyGroup>
<!-- ********************************************************************** -->
<ProxyGroup name="sources">
<!-- ==================================================================== -->
<SourceProxy class="vtkFileSeriesReader"
file_name_method="SetFileName"
label="Parallel NetCDF POP reader"
mpi_required="true"
name="PNetCDFPOPReader"
si_class="vtkSIMetaReaderProxy">
<Documentation long_help="Reads rectilinear grid data from a NetCDF POP file in parallel."
short_help="Read rectilinear grid data from a NetCDF file in the POP format in parallel.">
The reader reads regular rectilinear grid (image/volume) data from a
NetCDF file. Only a subset of the processes actually read the file and
these processes communicate the data to other processes.</Documentation>
<SubProxy>
<Proxy name="Reader"
proxygroup="internal_sources"
proxyname="PNetCDFPOPReaderCore"></Proxy>
<ExposedProperties>
<Property name="VariableArrayInfo" />
<Property name="VariableArrayStatus" />
<Property name="Stride" />
</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="pop.ncdf pop.nc"
file_description="Parallel POP Ocean NetCDF (Rectilinear)" />
</Hints>
</SourceProxy>
<!-- End PNetCDFPOPReader -->
</ProxyGroup>
</ServerManagerConfiguration>
<ServerManagerConfiguration>
<!-- ==================================================================== -->
<ProxyGroup name="mappers">
<Proxy class="vtkHAVSVolumeMapper"
name="HAVSVolumeMapper"
processes="client|renderserver|dataserver"></Proxy>
</ProxyGroup>
<!-- ==================================================================== -->
<ProxyGroup name="representations">
<!-- ================================================================== -->
<RepresentationProxy class="vtkUnstructuredGridVolumeRepresentation"
name="UnstructuredGridVolumeRepresentation"
processes="client|renderserver|dataserver"
si_class="vtkSIUnstructuredGridVolumeRepresentationProxy">
<Documentation>Representation for rendering a vtkImageData as
volume.</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
<DataTypeDomain composite_data_supported="1"
name="input_type">
<DataType value="vtkUnstructuredGridBase" />
</DataTypeDomain>
<InputArrayDomain attribute_type="any"
name="input_array_any">
</InputArrayDomain>
<Documentation>Set the input to the representation.</Documentation>
</InputProperty>
<IntVectorProperty command="SetVisibility"
default_values="1"
name="Visibility"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>Set the visibility for this
representation.</Documentation>
</IntVectorProperty>
<IntVectorProperty command="SetForceUseCache"
default_values="0"
is_internal="1"
name="ForceUseCache"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>Typically UseCache and CacheKey are updated by the View
and representations cache based on what the view tells it. However in
some cases we may want to force a representation to cache irrespective
of the view (e.g. comparative views). In which case these ivars can up
set. If ForcedCacheKey is true, it overrides UseCache and CacheKey.
Instead, ForcedCacheKey is used.</Documentation>
</IntVectorProperty>
<DoubleVectorProperty command="SetForcedCacheKey"
default_values="none"
is_internal="1"
name="ForcedCacheKey"
number_of_elements="1">
<DoubleRangeDomain name="range" />
<Documentation>Typically UseCache and CacheKey are updated by the View
and representations cache based on what the view tells it. However in
some cases we may want to force a representation to cache irrespective
of the view (e.g. comparative views). In which case these ivars can up
set. If ForcedCacheKey is true, it overrides UseCache and CacheKey.
Instead, ForcedCacheKey is used.</Documentation>
</DoubleVectorProperty>
<StringVectorProperty command="SetInputArrayToProcess"
element_types="0 0 0 0 2"
name="ColorArrayName"
no_custom_default="1"
number_of_elements="5" >
<Documentation>
Set the array to color with. One must specify the field association and
the array name of the array. If the array is missing, scalar coloring will
automatically be disabled.
</Documentation>
<RepresentedArrayListDomain name="array_list"
input_domain_name="input_array_any">
<RequiredProperties>
<Property function="Input" name="Input" />
</RequiredProperties>
</RepresentedArrayListDomain>
<FieldDataDomain name="field_list"
disable_update_domain_entries="1"
force_point_cell_data="1">
<RequiredProperties>
<Property function="Input" name="Input" />
</RequiredProperties>
</FieldDataDomain>
</StringVectorProperty>
<IntVectorProperty command="SetExtractedBlockIndex"
default_values="0"
name="ExtractedBlockIndex"
number_of_elements="1">
<Documentation>In case of multiblock datasets, choose the flat index of
the dataset to volume render. The flat index must point to an
unstructured grid dataset. If the input is not a multiblock dataset
then this index is ignored.</Documentation>
<CompositeTreeDomain mode="leaves"
name="tree">
<RequiredProperties>
<Property function="Input"
name="Input" />
</RequiredProperties>
</CompositeTreeDomain>
</IntVectorProperty>
<DoubleVectorProperty command="SetPosition"
default_values="0 0 0"
name="Position"
number_of_elements="3">
<DoubleRangeDomain name="range" />
</DoubleVectorProperty>
<DoubleVectorProperty command="SetScale"
default_values="1 1 1"
name="Scale"
number_of_elements="3">
<DoubleRangeDomain name="range" />
</DoubleVectorProperty>
<DoubleVectorProperty command="SetOrientation"
default_values="0 0 0"
name="Orientation"
number_of_elements="3">
<DoubleRangeDomain name="range" />
</DoubleVectorProperty>
<DoubleVectorProperty command="SetOrigin"
default_values="0 0 0"
name="Origin"
number_of_elements="3">
<DoubleRangeDomain name="range" />
</DoubleVectorProperty>
<IntVectorProperty command="SetPickable"
default_values="1"
name="Pickable"
number_of_elements="1">
<Hints>
<NoDefault />
</Hints>
<BooleanDomain name="bool" />
</IntVectorProperty>
<IntVectorProperty command="SetInterpolationType"
default_values="1"
name="InterpolationType"
number_of_elements="1">
<EnumerationDomain name="enum">
<Entry text="Nearest"
value="0" />
<Entry text="Linear"
value="1" />
</EnumerationDomain>
</IntVectorProperty>
<ProxyProperty command="SetColor"
name="LookupTable" >
<ProxyGroupDomain name="groups">
<Group name="transfer_functions" />
</ProxyGroupDomain>
</ProxyProperty>
<ProxyProperty command="SetScalarOpacity"
name="ScalarOpacityFunction" >
<ProxyGroupDomain name="groups">
<Group name="piecewise_functions" />
</ProxyGroupDomain>
</ProxyProperty>
<StringVectorProperty command="SetActiveVolumeMapper"
default_values="Projected tetra"
name="SelectMapper"
number_of_elements="1">
<Documentation>Select the volume mapper to use for Volume
rendering.</Documentation>
<StringListDomain name="list">
<String value="Projected tetra" />
<String value="HAVS" />
<String value="Z sweep" />
<String value="Bunyk ray cast" />
</StringListDomain>
</StringVectorProperty>
<DoubleVectorProperty command="SetScalarOpacityUnitDistance"
default_values="1"
name="ScalarOpacityUnitDistance"
number_of_elements="1">
<BoundsDomain mode="approximate_cell_length"
name="bounds" >
<RequiredProperties>
<Property function="Input"
name="Input" />
</RequiredProperties>
</BoundsDomain>
</DoubleVectorProperty>
<SubProxy>
<Proxy name="VolumeDummyMapper"
proxygroup="mappers"
proxyname="DummyVolumeMapper"></Proxy>
<ExposedProperties>
<Property name="RayCastFunction" />
</ExposedProperties>
</SubProxy>
<SubProxy>
<Proxy name="VolumeBunykMapper"
proxygroup="mappers"
proxyname="UnstructuredGridVolumeRayCastMapper"></Proxy>
<ShareProperties subproxy="VolumeDummyMapper"></ShareProperties>
</SubProxy>
<SubProxy>
<Proxy name="VolumeZSweepMapper"
proxygroup="mappers"
proxyname="UnstructuredGridVolumeZSweepMapper"></Proxy>
<ShareProperties subproxy="VolumeDummyMapper"></ShareProperties>
</SubProxy>
<SubProxy>
<Proxy name="VolumePTMapper"
proxygroup="mappers"
proxyname="ProjectedTetrahedraMapper"></Proxy>
<ShareProperties subproxy="VolumeDummyMapper"></ShareProperties>
</SubProxy>
<SubProxy>
<Proxy name="VolumeHAVSMapper"
proxygroup="mappers"
proxyname="HAVSVolumeMapper"></Proxy>
<ShareProperties subproxy="VolumeDummyMapper"></ShareProperties>
</SubProxy>
<!-- end of UnstructuredGridVolumeRepresentation -->
</RepresentationProxy>
</ProxyGroup>
</ServerManagerConfiguration>
<ServerManagerConfiguration>
<!-- ==================================================================== -->
<ProxyGroup name="representations">
<!-- ================================================================== -->
<RepresentationProxy class="vtkUnstructuredGridVolumeRepresentation"
name="UnstructuredGridVolumeRepresentation"
processes="client|renderserver|dataserver"
si_class="vtkSIUnstructuredGridVolumeRepresentationProxy">
<Documentation>Representation for rendering a vtkImageData as
volume.</Documentation>
<InputProperty command="SetInputConnection"
name="Input">
<DataTypeDomain composite_data_supported="1"
name="input_type">
<DataType value="vtkUnstructuredGridBase" />
</DataTypeDomain>
<InputArrayDomain attribute_type="any"
name="input_array_any">
</InputArrayDomain>
<Documentation>Set the input to the representation.</Documentation>
</InputProperty>
<IntVectorProperty command="SetVisibility"
default_values="1"
name="Visibility"
number_of_elements="1">
<BooleanDomain name="bool" />
<Documentation>Set the visibility for this
representation.</Documentation>
</IntVectorProperty>
<IntVectorProperty command="SetForceUseCache"
default_values="0"
is_internal="1"