[vtk-developers] PLY reader issues

David C Thompson dcthomp at sandia.gov
Fri Nov 16 16:31:01 EST 2007


> >Most places where errors occur in VTK simply use vtkErrorMacro and do
> >an early return. It is not a very robust generic error/exception
> >handling mechanism and relies on avoiding errors in the first place.
> 
> vtkErrorMacro seems to require 'this' but everything in vtkPLY is static
> methods.  Is there a variant error macro I can use?  I didn't see one...

vtkGenericWarningMacro doesn't require 'this' . It can't invoke an
ErrorEvent, so no one can use observers to watch for generic warnings,
but a message will be printed.

	David




More information about the vtk-developers mailing list