[vtkusers] How to get rid of the Generic Warning

Sean McBride sean at rogue-research.com
Tue Aug 15 14:43:55 EDT 2006

On 2006-08-15 14:16, tguo at imaging.robarts.ca said:

>I recently updated my VTK to the version of 5.0. Everything is fine except
>that when I got this Generic Warning: In
>/data/***/VTK/Filtering/vtkViewport.cxx, line 783
>vtkViewport::GetProps was deprecated for VTK 5.0 and will be removed in a
>future version.  Use vtkViewport::GetViewProps instead.
>It's annoying, since this warning constantly occupies the command window.
>How can I get rid of it?

Do what it says. :) Stop using old methods like GetProps() and update
your code to use the new methods.  You can even build vtk with
VTK_LEGACY_REMOVE:BOOL=1 to gut all the deprecated stuff.  It's some
work in the short term, but worth it in the long term.

Sean McBride, B. Eng                 sean at rogue-research.com
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada

More information about the vtkusers mailing list