f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Add CanReadFile support to all readers and importers

Open mwestphal opened this issue 2 months ago • 0 comments

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

  1. Select one of the reader/importer above, some are in VTK, some are in F3D
  2. Comment here so we know you are working on a specif reader/importer
  3. Implement CanReadFile(const char* fname)
  4. Implement CanReadFile(vtkResourceStream* stream)
  5. Add tests
  6. Contribute the feature to F3D/VTK

mwestphal avatar Oct 05 '25 13:10 mwestphal