I am writing a Reader for a specific file type.
The content of a file may be a vtkPolyData, vtkUnstructuredGrid or list of thiese two types.
So can I set output port data type at run time based on file content ?
following is some code I have tried:
I have tried to set OutputPortInformation by
in member function FillOutputPortInformation()
The result is I got a nullptr when request vtkInformation in member function RequestData
I have also tried to set the pointer to vtkPolyData::New()
but filter output nothing.