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