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 VVTOOLEXTRACTPATIENT_H
20 #define VVTOOLEXTRACTPATIENT_H
23 #include "clitkExtractPatientGenericFilter.h"
24 #include "../segmentation/clitkExtractPatient_ggo.h"
27 #include "ui_vvToolExtractPatient.h"
28 #include "vvToolBase.h"
29 #include "vvToolWidgetBase.h"
30 #include "vvROIActor.h"
33 #include <QtDesigner/QDesignerExportWidget>
35 //------------------------------------------------------------------------------
36 class vvToolExtractPatient:
37 public vvToolWidgetBase,
38 public vvToolBase<vvToolExtractPatient>,
39 private Ui::vvToolExtractPatient
43 vvToolExtractPatient(vvMainWindowBase* parent=0, Qt::WindowFlags f=0);
44 ~vvToolExtractPatient();
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_clitkExtractPatient ArgsInfoType;
62 ArgsInfoType * mArgsInfo;
63 typedef clitk::ExtractPatientGenericFilter<ArgsInfoType> FilterType;
65 vvImage::Pointer mPatient;
66 double mPatientBackgroundValue;
67 bool m_IsThreadInterrupted;
69 }; // end class vvToolExtractPatient
70 //------------------------------------------------------------------------------