]> Creatis software - bbtkGEditor.git/commitdiff
#2888 bbGEditor Feature New Normal - avoid vtk messages OutputWindwo box (vtkOutput...
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 10 Mar 2016 15:06:06 +0000 (16:06 +0100)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Thu, 10 Mar 2016 15:06:06 +0000 (16:06 +0100)
appli/bbEditor/bbEditor.cxx

index a54c317866873917dfa1a4c35694517103c7271a..517b72de9cb1c0d6271d07bae66da72a81a74906 100644 (file)
 #include <wx/sysopt.h>
 
 
+#include "vtkOutputWindow.h"
+
+class vtkOutputWindowbbGEditor : public vtkOutputWindow
+{
+public:
+       vtkOutputWindowbbGEditor() {}
+       static vtkOutputWindowbbGEditor* New() { return new vtkOutputWindowbbGEditor;}
+       virtual void    DisplayDebugText (const char *) {}
+       virtual void    DisplayText (const char *) {}
+       virtual void    DisplayErrorText (const char *) {}
+       virtual void    DisplayWarningText (const char *) {}
+       virtual void    DisplayGenericWarningText (const char *) {}
+protected:
+};
+
+
+
+
 static const wxCmdLineEntryDesc cmdLineDesc[] =
 {
 { wxCMD_LINE_PARAM,  NULL, NULL, _T("file"), wxCMD_LINE_VAL_STRING, wxCMD_LINE_PARAM_OPTIONAL }, 
@@ -98,6 +116,12 @@ bool wxBBEditorApp::OnCmdLineParsed(wxCmdLineParser& parser)
 // main frame
 bool wxBBEditorApp::OnInit( )
 {
+
+       vtkOutputWindowbbGEditor *vtkoutputwindowbbgeditor= vtkOutputWindowbbGEditor::New();
+       vtkOutputWindow::SetInstance( vtkoutputwindowbbgeditor );
+       vtkoutputwindowbbgeditor->Delete();
+
+
 #ifdef MACOSX
        /* assume this is OSX */
        wxSystemOptions::SetOption("mac.listctrl.always_use_generic", 1);