]> SALOME platform Git repositories - modules/visu.git/blob - src/VVTK/VVTK_ImageWriter.h
Salome HOME
Join modifications from branch OCC_debug_for_3_2_0b1
[modules/visu.git] / src / VVTK / VVTK_ImageWriter.h
1 //  SALOME VTKViewer : build VTK viewer into Salome desktop
2 //
3 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
5 // 
6 //  This library is free software; you can redistribute it and/or 
7 //  modify it under the terms of the GNU Lesser General Public 
8 //  License as published by the Free Software Foundation; either 
9 //  version 2.1 of the License. 
10 // 
11 //  This library is distributed in the hope that it will be useful, 
12 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
13 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
14 //  Lesser General Public License for more details. 
15 // 
16 //  You should have received a copy of the GNU Lesser General Public 
17 //  License along with this library; if not, write to the Free Software 
18 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
19 // 
20 //  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   :
25 //  Author :
26 //  Module :
27 //  $Header$
28
29
30 #ifndef _VVTK_ImageWriter_Header_File_
31 #define _VVTK_ImageWriter_Header_File_
32
33 #include <qthread.h>
34 #include <string>
35
36 class vtkImageData;
37 class QSemaphore;
38
39
40 class VVTK_ImageWriter : public QThread 
41 {
42 public:
43   VVTK_ImageWriter(QSemaphore* theSemaphore,
44                    vtkImageData* theImageData,
45                    const std::string& theName,
46                    int theProgressive,
47                    int theQuality);
48
49   ~VVTK_ImageWriter();
50
51  protected:
52   virtual
53   void
54   run();
55   
56  protected:
57   QSemaphore* mySemaphore;
58   vtkImageData *myImageData;
59   std::string myName;
60   int   myProgressive;
61   int   myQuality;
62   bool  myConstraint16Flag;
63 };
64 #endif