From: eduardo.davila@creatis.insa-lyon.fr Date: Thu, 12 Oct 2023 12:23:35 +0000 (+0200) Subject: Clean code X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9a7bc98832b9f18373390e768a63ac832808ed23;p=creaVtk.git Clean code --- diff --git a/bbtk_creaVtk_PKG/src/bbcreaVtkOutputWindow.cxx b/bbtk_creaVtk_PKG/src/bbcreaVtkOutputWindow.cxx index 05f0699..c1ba9c8 100644 --- a/bbtk_creaVtk_PKG/src/bbcreaVtkOutputWindow.cxx +++ b/bbtk_creaVtk_PKG/src/bbcreaVtkOutputWindow.cxx @@ -39,8 +39,10 @@ void OutputWindow::Process() { firsttime=false; vtkOutputWindowBBTK *w= vtkOutputWindowBBTK::New(); + w->SetDisplayModeToNever(); vtkOutputWindow::SetInstance( w ); - w->Delete(); + w->Delete(); + vtkObject::GlobalWarningDisplayOff(); } } //===== @@ -58,29 +60,25 @@ void OutputWindow::bbUserSetDefaultValues() //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== + void OutputWindow::bbUserInitializeProcessing() { - // THE INITIALIZATION METHOD BODY : // Here does nothing // but this is where you should allocate the internal/output pointers -// if any - - +// if any } //===== // Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost) //===== void OutputWindow::bbUserFinalizeProcessing() { - -// THE FINALIZATION METHOD BODY : -// Here does nothing -// but this is where you should desallocate the internal/output pointers -// if any - + // THE FINALIZATION METHOD BODY : + // Here does nothing + // but this is where you should desallocate the internal/output pointers + // if any } -} -// EO namespace bbcreaVtk + +}// EO namespace bbcreaVtk