]> Creatis software - clitk.git/blob - vv/vvToolBinarize.h
- small correction about Render (a bit less unuseful Render)
[clitk.git] / vv / vvToolBinarize.h
1 /*=========================================================================
2   Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
3
4   Authors belong to: 
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
8
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.
12
13   It is distributed under dual licence
14
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>
21
22 #include "vvToolBase.h"
23 #include "vvToolWidgetBase.h"
24 #include "vvImageContour.h"
25 #include "ui_vvToolBinarize.h"
26 #include "clitkBinarizeImage_ggo.h"
27
28 //------------------------------------------------------------------------------
29 class vvToolBinarize:
30   public vvToolWidgetBase,
31   public vvToolBase<vvToolBinarize>, 
32   private Ui::vvToolBinarize 
33 {
34   Q_OBJECT
35     public:
36   vvToolBinarize(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
37   ~vvToolBinarize();
38
39   //-----------------------------------------------------
40   static void Initialize();
41   void GetArgsInfoFromGUI();
42   virtual void InputIsSelected(vvSlicerManager * m);
43
44   //-----------------------------------------------------
45   public slots:
46   virtual void apply();
47   virtual bool close();
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);
55   //  void LeftButtonReleaseEvent(int slicer);
56
57  protected:
58   void RemoveVTKObjects();
59   Ui::vvToolBinarize ui;
60   args_info_clitkBinarizeImage mArgsInfo;
61   std::vector<vvImageContour*> mImageContour;
62   std::vector<vvImageContour*> mImageContourLower;
63   bool mInteractiveDisplayIsEnabled;
64
65 }; // end class vvToolBinarize
66 //------------------------------------------------------------------------------
67
68 #endif
69