]> Creatis software - clitk.git/blob - vv/vvToolExtractLung.h
now threaded segmentation (can be canceled)
[clitk.git] / vv / vvToolExtractLung.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 VVTOOLEXTRACTLUNG_H
20 #define VVTOOLEXTRACTLUNG_H
21
22 // clitk
23 #include "clitkExtractLungGenericFilter.h"
24 #include "../segmentation/clitkExtractLung_ggo.h"
25
26 // vv
27 #include "ui_vvToolExtractLung.h"
28 #include "vvToolBase.h"
29 #include "vvToolWidgetBase.h"
30 #include "vvROIActor.h"
31
32 // qt
33 #include <QtDesigner/QDesignerExportWidget>
34
35 //------------------------------------------------------------------------------
36 class vvToolExtractLung:
37   public vvToolWidgetBase,
38   public vvToolBase<vvToolExtractLung>, 
39   private Ui::vvToolExtractLung 
40 {
41   Q_OBJECT
42     public:
43   vvToolExtractLung(vvMainWindowBase* parent=0, Qt::WindowFlags f=0);
44   ~vvToolExtractLung();
45
46   //-----------------------------------------------------
47   static void Initialize();
48   virtual void InputIsSelected(vvSlicerManager *m);
49   void GetArgsInfoFromGUI();
50
51   //-----------------------------------------------------
52 public slots:
53   virtual void apply();
54   virtual bool close();
55   void PatientMaskInputIsSelected();
56   void ThreadInterrupted();
57
58   //-----------------------------------------------------
59 protected:
60   typedef args_info_clitkExtractLung ArgsInfoType;
61   ArgsInfoType * mArgsInfo;
62   typedef clitk::ExtractLungGenericFilter<ArgsInfoType> FilterType;
63   FilterType * mFilter;
64   vvImage::Pointer mPatient;
65   double mPatientBackgroundValue;
66   bool m_IsThreadInterrupted;
67
68 }; // end class vvToolExtractLung
69 //------------------------------------------------------------------------------
70
71 #endif
72