[vtkusers] WarningDisplay

Mark Wyszomierski markww at gmail.com
Mon Mar 3 14:22:14 EST 2008


I haven't looked at it in awhile, but I think you can create an
error/warning observer on the class you're using that generates the
messages. When an error or warning occurs, your observer has a chance
to intercept it and you can do whatever you want with it (ie. write it
to disk in a log file). There may be other examples on how to use this
out there, in general you do something like:

    pTheVtkInstance->AddObserver(vtkCommand::ErrorEvent,   yourObserver);

There may be a global method for doing this, but I don't know another
way to do it.

If it helps, I put an example of how to do this observer method here:

http://devsample.org/index.php?option=com_content&task=view&id=49&Itemid=27

though as mentioned before, perhaps there is a better way.

Mark




On Mon, Mar 3, 2008 at 2:16 PM, Matthias Riechmann <riechmann at ira.uka.de> wrote:
> Hi,
>
> I understand it is possible to deactivate the annoying window that
> displays warning messages during runtime by calling
>
> vtkObject::GlobalWarningDisplayOff();
>
> But is it possible to implement some kind of error handler that logs
> such messages somewhere else or writes them into a file?
>
>
> Matthias
>
>
>
>
> --
> Dipl.-Inform. Matthias Riechmann
> Institut für Prozessrechentechnik, Automation und Robotik
> Medizin-Gruppe
> Universität Karlsruhe (TH)
> Gebäude 40.28, Zimmer 103
> Engler-Bunte-Ring 8
> 76131 Karlsruhe
>
> Fon: +49 (721) 608-4049
> Fax: +49 (721) 608-7141
>
> Web: http://wwwipr.ira.uka.de/~richmann
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list