PropertyWidgetDecorator based on the type of input

Hi all,

Is it possible in a filter XML desciption to add a PropertyWidgetDecorator that depends on the type of input ?
My filter can be used with any type of data set, but for vtkUnstructuredGrids, I have a few extra parameters. How can I make them visible only when an unstructured grid is selected?

Thank you

Simon

Yes, using pqInputDataTypeDecorator: https://kitware.github.io/paraview-docs/latest/cxx/classpqInputDataTypeDecorator.html

    <Hints>
      <PropertyWidgetDecorator type="InputDataTypeDecorator" name="vtkPolyData"  exclude="1"/>
    </Hints>

Thanks a lot! that’s exactly what I was looking for

Simon

1 Like