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
21 #include <QtDesigner/QDesignerExportWidget>
23 #include "vvToolBase.h"
24 #include "vvToolWidgetBase.h"
25 #include "vvImageContour.h"
26 #include "ui_vvToolBinarize.h"
28 #include "clitkBinarizeImage_ggo.h"
30 //------------------------------------------------------------------------------
32 public vvToolWidgetBase,
33 public vvToolBase<vvToolBinarize>,
34 private Ui::vvToolBinarize
38 vvToolBinarize(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
41 //-----------------------------------------------------
42 static void Initialize();
43 void GetArgsInfoFromGUI();
44 virtual void InputIsSelected(vvSlicerManager * m);
46 //-----------------------------------------------------
50 virtual void reject();
51 void valueChangedT1(double v);
52 void valueChangedT2(double v);
53 void UpdateOrientation(int slicer, int orientation);
54 void UpdateSlice(int slicer,int slices);
55 void enableLowerThan(bool b);
56 void useFGBGtoggled(bool);
57 void InteractiveDisplayToggled(bool b);
58 // void LeftButtonReleaseEvent(int slicer);
61 void RemoveVTKObjects();
62 virtual void closeEvent(QCloseEvent *event);
63 Ui::vvToolBinarize ui;
64 args_info_clitkBinarizeImage mArgsInfo;
65 std::vector<vvImageContour::Pointer> mImageContour;
66 std::vector<vvImageContour::Pointer> mImageContourLower;
67 bool mInteractiveDisplayIsEnabled;
69 void Update(int slicer);
71 }; // end class vvToolBinarize
72 //------------------------------------------------------------------------------