[vtkusers] Reading standard image types

David Doria daviddoria at gmail.com
Mon Oct 18 07:41:32 EDT 2010


> So here my question: would it be the best way to implement this
> CanReadFile() function for each of the wanted readers and then
> automatically call it before the file should be opened. Or is there a
> better solution?

It makes sense to me that every vtk*Reader should have a CanReadFile function.

Have you seen this:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadUnknownTypeXMLFile ?
It may give you some clues on how to do something like this.

David



More information about the vtkusers mailing list