ShapePriors_GCPR16
ShapePriors_GCPR16 copied to clipboard
Hide VTK 7.1.1 Deprecated Warnings
I came across the problem of having a lot of deprecated warnings of VTK (when using VTK 7.1.1) such as
Generic Warning: In ~/VTK-7.1.1/Common/Core/vtkAOSDataArrayTemplate.txx, line 262
vtkAOSDataArrayTemplate::InsertNextTupleValue was deprecated for VTK 7.1 and will be removed in a future version. Use vtkGenericDataArray::InsertNextTypedTuple instead.
This caused the visualization to fail as the terminal/console was spammed with these warnings. Just wanted to let people know that a simple workaround is to add
vtkObject::GlobalWarningDisplayOff();
in Visualization::Visualization
(in external/viz/src/viz.cpp
).