]> Creatis software - clitk.git/blob - vv/vvThreadedFilter.h
changes in license header
[clitk.git] / vv / vvThreadedFilter.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
5   - University of LYON              http://www.universite-lyon.fr/
6   - Léon Bérard cancer center       http://www.centreleonberard.fr
7   - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
8
9   This software is distributed WITHOUT ANY WARRANTY; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  See the copyright notices for more information.
12
13   It is distributed under dual licence
14
15   - BSD        See included LICENSE.txt file
16   - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ===========================================================================**/
18
19 #ifndef VVTHREADEDFILTER_H
20 #define VVTHREADEDFILTER_H
21
22 // clitk
23 #include "clitkImageToImageGenericFilterBase.h"
24
25 // qt
26 #include <QThread>
27
28 //------------------------------------------------------------------------------
29 class vvThreadedFilter: public QThread
30 {
31   Q_OBJECT
32     public:
33   vvThreadedFilter();
34   ~vvThreadedFilter();
35
36   // Called from the main thread, runs the reader and displays the progress bar
37   void SetFilter(clitk::ImageToImageGenericFilterBase * f);
38   void Update();
39
40 public slots:
41   void reject();
42   
43  signals:
44   void ThreadInterrupted();
45
46 protected:
47   void run();
48   clitk::ImageToImageGenericFilterBase * m_Filter;
49   clitk::FilterBase * m_FilterBase;
50
51 }; // end class vvThreadedFilter
52 //------------------------------------------------------------------------------
53
54 #endif
55