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