I recently modified the ParaView to have the
Image Data to Uniform Grid filter be available in the GUI’s Filter’s menu. There’s a couple of issues with the XML configuration though.
The biggest issue is that
vtkGhostType isn’t available in the
Select Input Scalars option as this is the natural array name for a ghost array in VTK but is normally hidden in ParaView. Is there a way to make that shown for this filter?
The second issue is that I didn’t properly set the filter to work for composite data sets. I want the filter to be available when there are at least some but not necessarily all vtkImageDatas in the composite dataset. For example, I have a combination of vtkImageDatas with blanking and vtkUnstructuredGrids and the filter knows to properly work with that. I tried the following which doesn’t work:
<DataTypeDomain name="input_type" composite_data_supported="1"> <DataType value="vtkImageData" /> </DataTypeDomain>
Alternatively, I could do the following but that may be confusing as it would make the filter available even when there are no vtkImageDatas in the composite dataset:
<DataTypeDomain name="input_type"> <DataType value="vtkImageData" /> <DataType value="vtkCompositeDataSet" /> </DataTypeDomain>
I’d be ok with this if others are though.