sharon
(sharon)
July 15, 2019, 3:44pm
1
I create my own filter, but these filter is just can use for my own “MyMultiBlockDataSet” which inherited from vtkMultiBlockDataSet.
So i wonder is there any method i can check the input vtkMultiBlockDataSet to decide whether i can filter it or not ?
mwestphal
(Mathieu Westphal (Kitware))
July 15, 2019, 3:56pm
2
in the xml declaration of your filter you can check a number of things, eg: the presence of a three component point data array.
Is that what you are looking for ?
sharon
(sharon)
July 15, 2019, 3:59pm
3
I want a method like “CanFilter(inputDataObject)”, then i can cast this “inputDataObject” to “myOwnDataObject”, if it is successful, it means myFilter can handle…
mwestphal
(Mathieu Westphal (Kitware))
July 15, 2019, 4:01pm
4
Not possible without more complex implementation. I suggested an alternative.
sharon
(sharon)
July 15, 2019, 4:02pm
5
OK, Thank you for your suggestion.
If this is not so directly, i will give up…