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


Yes, using pqInputDataTypeDecorator:

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

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


1 Like