1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
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
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
19 #ifndef VVTOOLEXTRACTLUNG_H
20 #define VVTOOLEXTRACTLUNG_H
23 #include "clitkExtractLungGenericFilter.h"
24 #include "../segmentation/clitkExtractLung_ggo.h"
27 #include "ui_vvToolExtractLung.h"
28 #include "vvToolBase.h"
29 #include "vvToolWidgetBase.h"
30 #include "vvROIActor.h"
33 #include <QtDesigner/QDesignerExportWidget>
35 //------------------------------------------------------------------------------
36 class vvToolExtractLung:
37 public vvToolWidgetBase,
38 public vvToolBase<vvToolExtractLung>,
39 private Ui::vvToolExtractLung
43 vvToolExtractLung(vvMainWindowBase* parent=0, Qt::WindowFlags f=0);
46 //-----------------------------------------------------
47 static void Initialize();
48 virtual void InputIsSelected(vvSlicerManager *m);
49 void GetArgsInfoFromGUI();
51 //-----------------------------------------------------
55 void PatientMaskInputIsSelected();
56 void ThreadInterrupted();
58 //-----------------------------------------------------
60 typedef args_info_clitkExtractLung ArgsInfoType;
61 ArgsInfoType * mArgsInfo;
62 typedef clitk::ExtractLungGenericFilter<ArgsInfoType> FilterType;
64 vvImage::Pointer mPatient;
65 double mPatientBackgroundValue;
66 bool m_IsThreadInterrupted;
68 }; // end class vvToolExtractLung
69 //------------------------------------------------------------------------------