]> Creatis software - clitk.git/blob - vv/vvToolMIP.h
1689880f3436a289792a3c26f367b41e878d0157
[clitk.git] / vv / vvToolMIP.h
1 /*=========================================================================
2
3 Program:   vv
4 Module:    $RCSfile: vvToolMIP.h,v $
5 Language:  C++
6 Date:      $Date: 2010/10/26 12:37:59 $
7 Version:   $Revision: 1.1 $
8 Author :   Joel Schaerer (joel.schaerer@gmail.com)
9
10 Copyright (C) 2010
11 Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr
12 CREATIS                   http://www.creatis.insa-lyon.fr
13
14 This program is free software: you can redistribute it and/or modify
15 it under the terms of the GNU General Public License as published by
16 the Free Software Foundation, version 3 of the License.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program.  If not, see <http://www.gnu.org/licenses/>.
25
26 =========================================================================*/
27
28 #ifndef VVTOOLMIP_H
29 #define VVTOOLMIP_H
30
31 #include <vvImage.h>
32
33 #include <QtDesigner/QDesignerExportWidget>
34 #include "vvToolBase.h"
35 #include "QWidget"
36 #include "vvToolWidgetBase.h"
37 #include "ui_vvToolMIP.h"
38
39
40 //------------------------------------------------------------------------------
41 class vvToolMIP:
42   public vvToolWidgetBase,
43   public vvToolBase<vvToolMIP>, 
44   private Ui::vvToolMIP
45 {
46   Q_OBJECT      
47   public:
48     vvToolMIP(vvMainWindowBase* parent=0, Qt::WindowFlags f=0);
49     ~vvToolMIP();
50
51     static void Initialize();
52     virtual void InputIsSelected(vvSlicerManager * m);
53     virtual void apply();
54   protected:
55
56     template<class PixelType,int Dim> void Update_WithDimAndPixelType(vvImage::Pointer);
57     template<class PixelType> void Update_WithPixelType(vvImage::Pointer);
58
59     Ui::vvToolMIP ui;
60
61 }; // end class vvToolMIP
62 //------------------------------------------------------------------------------
63
64 #endif
65