1 /*=========================================================================
2 Program: vv http://www.creatis.insa-lyon.fr/rio/vv
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
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.
13 It is distributed under dual licence
15 - BSD See included LICENSE.txt file
16 - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
17 ======================================================================-====*/
19 #ifndef VVTOOLWIDGETBASE_H
20 #define VVTOOLWIDGETBASE_H
22 #include <QtDesigner/QDesignerExportWidget>
23 #include "ui_vvToolWidgetBase.h"
24 #include "clitkImageToImageGenericFilter.h"
26 class vvMainWindowBase;
28 //------------------------------------------------------------------------------
29 class vvToolWidgetBase:
31 public Ui::vvToolWidgetBase
36 vvToolWidgetBase(vvMainWindowBase * parent=0, Qt::WindowFlags f=0);
39 virtual void InputIsSelected(vvSlicerManager *m);
40 virtual void InputIsSelected(std::vector<vvSlicerManager*> & l);
41 void AddInputSelector(QString s, clitk::ImageToImageGenericFilterBase * f, bool allowSkip=false);
42 void AddInputSelector(QString s, bool allowSkip=false);
45 virtual void apply() = 0;
47 void InputIsSelected();
48 void AnImageIsBeingClosed(vvSlicerManager * m);
52 void InitializeInputs();
53 Ui::vvToolWidgetBase ui;
54 clitk::ImageToImageGenericFilterBase * mFilter;
55 vvMainWindowBase * mMainWindow;
56 std::vector<vvSlicerManager*> mSlicerManagersCompatible;
57 vvSlicerManager * mCurrentSlicerManager;
58 int mCurrentCompatibleIndex;
59 vvImage * mCurrentImage;
62 }; // end class vvToolWidgetBase
63 //------------------------------------------------------------------------------