Icy-imaging/Icy-Kernel — Issue #214: Warning messages slow down the application
Author: nicolasC
Created: 2011-11-04 13:33:23+00:00
State: open

Hi all,

I am currently developping a plugin using the 3d display. But it is not usable in practice because displaying hundreds of warning messages slows down the application. What I am doing is that I am repeatedly changing the position of a sphere:

sphereSource.SetCenter(new double[]{x, y, z});
sphereSource.Update();

where sphereSource is a vtkSphereSource object. When I do this I the console displays several hundred of times the following warning messages:

Generic Warning: In /Users/adufour/Downloads/VTK/vtk-5.8.0/Rendering/vtkActor.cxx, line 524
vtkActor::GetNumberOfParts was deprecated for VTK 5.2 and will be removed in a future version. Use vtkActor::GetNumberOfPaths instead.

Generic Warning: In /Users/adufour/Downloads/VTK/vtk-5.8.0/Rendering/vtkActor.cxx, line 495
vtkActor::InitPartTraversal was deprecated for VTK 5.2 and will be removed in a future version. Use vtkActor::InitPathTraversal instead.

Generic Warning: In /Users/adufour/Downloads/VTK/vtk-5.8.0/Rendering/vtkActor.cxx, line 503
vtkActor::GetNextPart was deprecated for VTK 5.2 and will be removed in a future version. Use vtkActor::GetNextPath instead.

Is there a way to fix this or to filter the warning messages?

Thanks