[vtkusers] vtkGenericDataObjectReader, error handling

Michal Szostakiewicz creed at icm.edu.pl
Fri Apr 19 05:19:18 EDT 2013


Hi!

When I use vtkGenericDataObjectReader (or any other reader), how can I
check if the file I'm opening is a proper file?

Method SetFileName() runs just fine, but then when I call Update() or
GetOutput() it prints a bunch of errors (on Windows it's even worse,
because it creates a separate window for them).

So how can I check if user chose a valid VTK file?


Best regards,
Michał




More information about the vtkusers mailing list