#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
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;
}
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();
}