]> Creatis software - clitk.git/blob - vv/vvToolImageArithm.h
First Modification for Qt5 & VTK6
[clitk.git] / vv / vvToolImageArithm.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://www.centreleonberard.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 VVTOOLImageArithm_H
19 #define VVTOOLImageArithm_H
20 #include <QtUiPlugin/QDesignerExportWidget>
21
22 #include "vvToolBase.h"
23 #include "vvToolWidgetBase.h"
24 #include "ui_vvToolImageArithm.h"
25 #include "clitkImageArithm_ggo.h"
26
27 //------------------------------------------------------------------------------
28 class vvToolImageArithm:
29   public vvToolWidgetBase,
30   public vvToolBase<vvToolImageArithm>, 
31   private Ui::vvToolImageArithm
32 {
33   Q_OBJECT
34     public:
35   vvToolImageArithm(vvMainWindowBase* parent=0, Qt::WindowFlags f=0);
36   ~vvToolImageArithm();
37
38   static void Initialize();
39   void GetArgsInfoFromGUI();
40   virtual void InputIsSelected(std::vector<vvSlicerManager *> & m);
41   virtual void InputIsSelected(vvSlicerManager * m);
42
43 public slots:
44   virtual void apply();
45
46  protected:
47   Ui::vvToolImageArithm ui;
48   vvSlicerManager * mInput1;
49   vvSlicerManager * mInput2;
50   args_info_clitkImageArithm mArgsInfo;
51   bool mTwoInputs;
52
53 }; // end class vvToolImageArithm
54 //------------------------------------------------------------------------------
55
56 #endif
57