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