]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Disable vtk warnings
authorabd <abd@opencascade.com>
Fri, 3 Nov 2006 15:19:34 +0000 (15:19 +0000)
committerabd <abd@opencascade.com>
Fri, 3 Nov 2006 15:19:34 +0000 (15:19 +0000)
src/VTKViewer/VTKViewer_ViewModel.cxx

index 9653aeacf11aa2686004790210b42f842454c0c2..f611972ae9d63f315bba8b22b4f17165c2ee63e0 100755 (executable)
 #include <qpalette.h>
 #include <qpopupmenu.h>
 
+bool _InitializeVtkWarningsCall()
+{
+  char* isOn = getenv( "VTK_WARNINGS_IS_ON" );  
+  if ( !isOn || strcmp( isOn, "1" ) )
+    vtkObject::GlobalWarningDisplayOff();
+
+  delete isOn;
+  return vtkObject::GetGlobalWarningDisplay();
+}
+static bool _InitializeVtkWarnings = _InitializeVtkWarningsCall();
+
 /*!Constructor.Sets background color to black.*/
 VTKViewer_Viewer::VTKViewer_Viewer()
 : SUIT_ViewModel(),