]> Creatis software - clitk.git/blob - vv/vvToolMedianFilter.h
Merge branch 'VTK6_Qt5' into VTK6_Qt5_LineProfile
[clitk.git] / vv / vvToolMedianFilter.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       /*=========================================================================
19
20     Program:   vv
21     Module:    $RCSfile: vvToolMedianFilter.h,v $
22     Language:  C++
23     Date:      $Date: 2010/04/26 18:21:55 $
24     Version:   $Revision: 1.2 $
25     Author :   Bharath Navalpakkam (Bharath.Navalpakkam@creatis.insa-lyon.fr)
26
27     Copyright (C) 2010
28     Léon Bérard cancer center http://www.centreleonberard.fr
29     CREATIS                   http://www.creatis.insa-lyon.fr
30
31     This program is free software: you can redistribute it and/or modify
32     it under the terms of the GNU General Public License as published by
33     the Free Software Foundation, version 3 of the License.
34
35     This program is distributed in the hope that it will be useful,
36     but WITHOUT ANY WARRANTY; without even the implied warranty of
37     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
38     GNU General Public License for more details.
39
40     You should have received a copy of the GNU General Public License
41     along with this program.  If not, see <http://www.gnu.org/licenses/>.
42
43     =========================================================================*/
44
45   #ifndef VVTOOLMedianFilter_H
46   #define VVTOOLMedianFilter_H
47   
48 #if QT_VERSION < 0x050000
49   #include <QtDesigner/QDesignerExportWidget>
50 #else
51   #include <QtUiPlugin/QDesignerExportWidget>
52 #endif
53   #include "vvToolBase.h"
54   #include "QWidget"
55   #include "vvToolWidgetBase.h"
56   #include "ui_vvToolMedianFilter.h"
57   #include "clitkMedianImageFilter_ggo.h"
58    #include <clitkMedianImageGenericFilter.h>
59
60
61   //------------------------------------------------------------------------------
62   class vvToolMedianFilter:
63     public vvToolWidgetBase,
64     public vvToolBase<vvToolMedianFilter>, 
65     private Ui::vvToolMedianFilter
66   {
67       Q_OBJECT  
68   public:
69       vvToolMedianFilter(vvMainWindowBase* parent=0, Qt::WindowFlags f=0);
70       ~vvToolMedianFilter();
71
72       static void Initialize();
73       virtual void GetArgsInfoFromGUI();
74       virtual void InputIsSelected(vvSlicerManager * m);
75       virtual void apply();
76  
77
78     public slots:    
79     
80      void UpdateH1slider();   
81      void UpdateH2slider();   
82      void UpdateH3slider();
83   protected:
84
85       Ui::vvToolMedianFilter ui;
86      args_info_clitkMedianImageFilter mArgsInfo;
87
88
89   }; // end class vvToolMedianFilter
90   //------------------------------------------------------------------------------
91
92   #endif
93