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