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 ===========================================================================**/
18 #ifndef VVTOOLBINARIZE_H
19 #define VVTOOLBINARIZE_H
22 #include <QtDesigner/QDesignerExportWidget>
24 #include "vvToolBase.h"
25 #include "vvToolWidgetBase.h"
26 #include "vvImageContour.h"
27 #include "ui_vvToolBinarize.h"
29 #include "clitkBinarizeImage_ggo.h"
31 //------------------------------------------------------------------------------
33 public vvToolWidgetBase,
34 public vvToolBase<vvToolBinarize>,
35 private Ui::vvToolBinarize
39 vvToolBinarize(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
42 //-----------------------------------------------------
43 static void Initialize();
44 void GetArgsInfoFromGUI();
45 virtual void InputIsSelected(vvSlicerManager * m);
47 //-----------------------------------------------------
51 virtual void reject();
52 void valueChangedT1(double v);
53 void valueChangedT2(double v);
54 void UpdateOrientation(int slicer, int orientation);
55 void UpdateSlice(int slicer,int slices, int code=0);
56 void enableLowerThan(bool b);
57 void useFGBGtoggled(bool);
58 void InteractiveDisplayToggled(bool b);
59 // void LeftButtonReleaseEvent(int slicer);
62 void RemoveVTKObjects();
63 virtual void closeEvent(QCloseEvent *event);
64 Ui::vvToolBinarize ui;
65 args_info_clitkBinarizeImage mArgsInfo;
66 std::vector<vvImageContour::Pointer> mImageContour;
67 std::vector<vvImageContour::Pointer> mImageContourLower;
68 bool mInteractiveDisplayIsEnabled;
70 void Update(int slicer);
72 }; // end class vvToolBinarize
73 //------------------------------------------------------------------------------