]> Creatis software - clitk.git/blob - vv/vvLabelImageLoaderWidget.h
eadf342cb14812b8edb9554e7e360bb06d299918
[clitk.git] / vv / vvLabelImageLoaderWidget.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 #ifndef VVLABELIMAGELOADERWIDGET_H
20 #define VVLABELIMAGELOADERWIDGET_H
21
22 // vv
23 #include "vvImage.h"
24
25 // qt
26 #include <QtGlobal>
27 #include <QtDesigner/QDesignerExportWidget>
28 #include <QDialog>
29 #include "ui_vvLabelImageLoaderWidget.h"
30
31 class vvSlicerManager;
32
33 //------------------------------------------------------------------------------
34 class vvLabelImageLoaderWidget: public QWidget, private Ui::vvLabelImageLoaderWidget 
35 {
36   Q_OBJECT
37     public:
38   vvLabelImageLoaderWidget(QWidget * parent=0, Qt::WindowFlags f=0);
39   ~vvLabelImageLoaderWidget() {}
40
41   vvImage::Pointer GetImage();
42   double GetBackgroundValue();
43   void SetText(QString t);
44   
45 signals:
46   void accepted();
47   
48 protected:
49   Ui::vvLabelImageLoaderWidget ui;
50   vvImage::Pointer m_Output;
51
52  protected slots:  
53   void OpenImage();
54
55 }; // end class vvLabelImageLoaderWidget
56 //------------------------------------------------------------------------------
57
58 #endif
59