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 ======================================================================-====*/
18 #ifndef VVTOOLBINARIZE_H
19 #define VVTOOLBINARIZE_H
20 #include <QtDesigner/QDesignerExportWidget>
22 #include "vvToolBase.h"
23 #include "vvToolWidgetBase.h"
24 #include "vvImageContour.h"
25 #include "ui_vvToolBinarize.h"
26 #include "clitkBinarizeImage_ggo.h"
28 //------------------------------------------------------------------------------
30 public vvToolWidgetBase,
31 public vvToolBase<vvToolBinarize>,
32 private Ui::vvToolBinarize
36 vvToolBinarize(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
39 //-----------------------------------------------------
40 static void Initialize();
41 void GetArgsInfoFromGUI();
42 virtual void InputIsSelected(vvSlicerManager * m);
44 //-----------------------------------------------------
48 virtual void reject();
49 void valueChangedT1(double v);
50 void valueChangedT2(double v);
51 void UpdateSlice(int slicer,int slices);
52 void enableLowerThan(bool b);
53 void useFGBGtoggled(bool);
54 void InteractiveDisplayToggled(bool b);
57 void RemoveVTKObjects();
58 Ui::vvToolBinarize ui;
59 args_info_clitkBinarizeImage mArgsInfo;
60 std::vector<vvImageContour*> mImageContour;
61 std::vector<vvImageContour*> mImageContourLower;
62 bool mInteractiveDisplayIsEnabled;
64 }; // end class vvToolBinarize
65 //------------------------------------------------------------------------------