Hello,I have a filter, inherited from vtkUnstructuredGridAlgorithm, which can
process both structured and unstructured grids, but the only way I found to
restrict the valid inputs is:
int MyFilter::FillInputPortInformation(int vtkNotUsed(port), vtkInformation
*info) { info->Set(vtkAlgorithm::INPUT_REQUIRED_DATA_TYPE(),
"vtkPointSet"); return 1; }
so it means that I can connect a vtkPolyData set to my filter, which is a
mistake actually.How could I set vtkStructuredGrid and vtkUnstructuredGrid as
the only valid input types?
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview