f3d
f3d copied to clipboard
Add CanReadFile support to all readers and importers
Is your feature request related to a problem? Please describe. VTK provides an API to use to identify if a file can be read by a reader/importer, but it is not fully implemented in all readers/importers. Also this API currently exists only with files, stream support should be added as well.
List of readers/importers:
- [ ] vtkF3DAlembicReader
- [ ] vtkF3DAssimpImporter
- [ ] vtkF3DDracoReader
- [ ] vtkHDFReader: Exists but to improve and add stream support
- [x] ̶v̶t̶k̶E̶x̶o̶d̶u̶s̶I̶I̶R̶e̶a̶d̶e̶r̶ (not supported by Exodus)
- [ ] vtk3DSImporter
- [ ] vtkCityGMLReader
- [ ] vtkDICOMImageReader: Exists but add stream support
- [ ] vtkGLTFImporter
- [ ] vtkMetaImageReader: Exists but add stream support
- [ ] vtkNrrdReader: Exists but add stream support
- [ ] vtkOBJImporter
- [ ] vtkPLYReader: Exists but add stream support
- [ ] vtkPTSReader
- [ ] vtkSTLReader
- [ ] vtkTIFFReader: Exists but add stream support
- [x] vt̶k̶V̶R̶M̶L̶I̶m̶p̶o̶r̶t̶e̶r (skip)
- [ ] vtkPDataSetReader: Exists but add stream support
- [ ] vtkXML*Reader: Exists but add stream support
- [ ] vtkF3DSplatReader
- [ ] vtkF3DQuakeMDLImporter
- [ ] vtkF3DSPZReader
- [ ] vtkF3DOCCTReader
- [ ] vtkF3DUSDImporter
- [ ] vtkOpenVDBReader: Exists but add stream support
List of image reader:
- [ ] vtkImageReader2: Add API
- [ ] vtkJPEGReader:
- [ ] vtkPNGReader:
- [ ] vtkTGAReader:
- [ ] vtkHDRReader:
- [ ] vtkBMPReader:
- [x] Others: Ignore
Describe the solution you'd like
- Select one of the reader/importer above, some are in VTK, some are in F3D
- Comment here so we know you are working on a specif reader/importer
- Implement
CanReadFile(const char* fname) - Implement
CanReadFile(vtkResourceStream* stream) - Add tests
- Contribute the feature to F3D/VTK