Salome HOME
Updated copyright comment
[modules/gui.git] / src / SVTK / SVTK_ImageWriter.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 6073822..b5aa26e
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2024  CEA, EDF, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -19,6 +19,8 @@
 
 #include "SVTK_ImageWriter.h"
 
+#include "utilities.h"
+
 #include <QSemaphore>
 
 #include <vtkAlgorithm.h>
 #include <vtkJPEGWriter.h>
 #include <vtkSmartPointer.h>
 
-#ifdef _DEBUG_
-static int MYDEBUG = 0;
-#else
-static int MYDEBUG = 0;
-#endif
-
 
 //----------------------------------------------------------------------------
 SVTK_ImageWriter
@@ -55,7 +51,8 @@ SVTK_ImageWriter
 SVTK_ImageWriter
 ::~SVTK_ImageWriter()
 {
-  if(MYDEBUG) cout<<"SVTK_ImageWriter::~SVTK_ImageWriter - this = "<<this<<endl;
+  if(SALOME::VerbosityActivated())
+    cout << "SVTK_ImageWriter::~SVTK_ImageWriter - this = " << this << endl;
 }
 
 
@@ -101,10 +98,11 @@ SVTK_ImageWriter
   aWriter->Delete();
   myImageData->Delete();
 
-  if(MYDEBUG) cout<<"SVTK_ImageWriter::run "<<
-                "- this = "<<this<<
-                //"; total = "<<mySemaphore->total()<<
-                "; available = "<<mySemaphore->available()<<endl;
+  if(SALOME::VerbosityActivated())
+    cout << "SVTK_ImageWriter::run - this = " << this <<
+    //"; total = "<<mySemaphore->total()<<
+    "; available = " << mySemaphore->available() << endl;
+    
   mySemaphore->release();
 }