Add a warning on filter creation with some input type and memory conditions
- Add a XML syntax to specify the a warning should be shown under specific conditions
- Uses this mechanism on many filters
- Deprecate previous WarnOnCreate syntax
- Add a public method to vtkSMDataTypeDomain so it can be used outside of a property
Syntax:
<Hints>
<WarnOnCreate>
<DataTypeDomain name="input_type">
<DataType value="vtkImageData" />
<DataType value="vtkRectilinearGrid" />
<DataType value="vtkStructuredGrid" />
</DataTypeDomain>
<MemoryUsage relative="5" />
<Text title="Potentially running out of memory">
**Tensor Glyph** filter will create a polydata output and
you may not have enough memory to create it.
Do you want to continue?
</Text>
</WarnOnCreate>
</Hints>
Edited by Mathieu Westphal (Kitware)