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://www.centreleonberard.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();
50 void SetGUIFromArgsInfo();
52 //-----------------------------------------------------
56 void PatientMaskInputIsSelected();
57 void ThreadInterrupted();
59 //-----------------------------------------------------
61 typedef args_info_clitkExtractLung ArgsInfoType;
62 ArgsInfoType * mArgsInfo;
63 typedef clitk::ExtractLungGenericFilter<ArgsInfoType> FilterType;
65 vvImage::Pointer mPatient;
66 double mPatientBackgroundValue;
67 bool m_IsThreadInterrupted;
69 }; // end class vvToolExtractLung
70 //------------------------------------------------------------------------------