How to disable vtkOutputWindow?

Hello,

When an error occurs during the execution of a filter an instance of vtkOutputWindow is created internally in VTK and the error message gets shown. Once shown, the user is unable to kill this output window. I have an interactive Windows application and this window pops up on top of my application and hinders interaction. Is there a way to hide this window and instead send these error messages to a log file or to the console?

Thanks for your time!

simply call vtkObject::GlobalWarningDisplayOff(). That will keep any error/warning/debug messages from being posted to the vtkOutputWindow.

2 Likes

Thank you! This did the trick!