]> Creatis software - clitk.git/blob - vv/vvThreadedFilter.h
*** empty log message ***
[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://oncora1.lyon.fnclcc.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 protected:
44   void run();
45   clitk::ImageToImageGenericFilterBase * m_Filter;
46   clitk::FilterBase * m_FilterBase;
47
48 }; // end class vvThreadedFilter
49 //------------------------------------------------------------------------------
50
51 #endif
52